UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

6 lines • 295 B
import { reduce } from './reduce'; import { isFunction } from '../util/isFunction'; export function max(comparer) { return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); }); } //# sourceMappingURL=max.js.map