UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

19 lines 723 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.SortedByDescending = void 0; var SortedByDescending = /** @class */ (function () { function SortedByDescending() { } /** * Returns a new sequence with all elements sorted descending by the value specified * by the given `selector` function. * * @param {(value: T) => R} selector * @returns {Sequence<T>} */ SortedByDescending.prototype.sortedByDescending = function (selector) { return this.sorted(function (it) { return it.compareByDescending(selector); }); }; return SortedByDescending; }()); exports.SortedByDescending = SortedByDescending; //# sourceMappingURL=sortedByDescending.js.map