hugoWebsite/node_modules/rxjs/dist/esm/internal/operators/min.js
Jeremy Nusser 0ab675d92b Initial commit... 🎉🎉🎉
2022-10-28 17:20:35 -05:00

6 lines
No EOL
259 B
JavaScript

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