blob: 1f7fc8c762f2e2c2ebf7a5da6284730f6f7bd0e5 [file] [log] [blame]
import { reduce } from './reduce';
export function min(comparer) {
const min = (typeof comparer === 'function')
? (x, y) => comparer(x, y) < 0 ? x : y
: (x, y) => x < y ? x : y;
return reduce(min);
}
//# sourceMappingURL=min.js.map