@newdash/newdash
Version:
javascript/typescript utility library
14 lines (13 loc) • 486 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.max = void 0;
const identity_1 = __importDefault(require("./.internal/identity"));
const maxBy_1 = __importDefault(require("./maxBy"));
function max(array) {
return (0, maxBy_1.default)(array, identity_1.default);
}
exports.max = max;
exports.default = max;