@walts81/linq-ts
Version:
Typescript/Javascript LINQ implementation library
11 lines (10 loc) • 417 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.orderByDescending = void 0;
const _common_1 = require("./_common");
Array.prototype.orderByDescending = orderByDescending;
function orderByDescending(selector = x => x, compare = _common_1.DefaultComparer) {
const arr = this.orderBy(selector, compare);
return arr.reverse();
}
exports.orderByDescending = orderByDescending;