UNPKG

data-collectors

Version:

A collection of composable reduction operations for arbitrary streams of values

16 lines 459 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const toArray_1 = require("../collections/toArray"); function sorting(comparator, collector) { return toArray_1.toArray().then(arr => { arr.sort(comparator); if (collector) { return collector.apply(arr); } else { return arr; } }); } exports.sorting = sorting; //# sourceMappingURL=sorting.js.map