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