UNPKG

@walts81/linq-ts

Version:

Typescript/Javascript LINQ implementation library

11 lines (10 loc) 377 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.max = void 0; const min_or_max_1 = require("./min-or-max"); const _common_1 = require("./_common"); Array.prototype.max = max; function max(selector = x => x, comparer = _common_1.DefaultComparer) { return (0, min_or_max_1.minOrMax)(this, selector, comparer, 'max'); } exports.max = max;