min.js 259 B

123456
  1. import { reduce } from './reduce';
  2. import { isFunction } from '../util/isFunction';
  3. export function min(comparer) {
  4. return reduce(isFunction(comparer) ? (x, y) => (comparer(x, y) < 0 ? x : y) : (x, y) => (x < y ? x : y));
  5. }
  6. //# sourceMappingURL=min.js.map