es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
13 lines (10 loc) • 351 B
JavaScript
import { minBy as minBy$1 } from '../../array/minBy.mjs';
import { identity } from '../../function/identity.mjs';
import { iteratee } from '../util/iteratee.mjs';
function minBy(items, iteratee$1) {
if (items == null) {
return undefined;
}
return minBy$1(Array.from(items), iteratee(iteratee$1 ?? identity));
}
export { minBy };