UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

18 lines 610 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.SortedWith = void 0; var SortedWith = /** @class */ (function () { function SortedWith() { } /** * Returns a new sequence with all elements sorted be the given `compare` function. * * @param {(a: T, b: T) => number} comparison * @returns {Sequence<T>} */ SortedWith.prototype.sortedWith = function (comparison) { return this.sorted(function (it) { return it.compare(comparison); }); }; return SortedWith; }()); exports.SortedWith = SortedWith; //# sourceMappingURL=sortedWith.js.map