UNPKG

@stoplight/spectral-cli

Version:

[![](https://raw.githubusercontent.com/stoplightio/spectral/develop/docs/img/readme-header.svg)](https://stoplight.io/api-governance?utm_source=github&utm_medium=spectral&utm_campaign=readme) [![CircleCI](https://img.shields.io/circleci/build/github/stopl

16 lines 505 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.segregateEntriesPerKind = void 0; function segregateEntriesPerKind(entries) { return entries.reduce((group, entry) => { if (typeof entry === 'string') { group[0].push(entry); } else { group[1].push(entry); } return group; }, [[], []]); } exports.segregateEntriesPerKind = segregateEntriesPerKind; //# sourceMappingURL=segregateEntriesPerKind.js.map