UNPKG

recoder-code

Version:

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

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