mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Bump to v4.11.2.
This commit is contained in:
4
minBy.js
4
minBy.js
@@ -1,6 +1,6 @@
|
||||
import baseExtremum from './_baseExtremum';
|
||||
import baseIteratee from './_baseIteratee';
|
||||
import lt from './lt';
|
||||
import baseLt from './_baseLt';
|
||||
|
||||
/**
|
||||
* This method is like `_.min` except that it accepts `iteratee` which is
|
||||
@@ -28,7 +28,7 @@ import lt from './lt';
|
||||
*/
|
||||
function minBy(array, iteratee) {
|
||||
return (array && array.length)
|
||||
? baseExtremum(array, baseIteratee(iteratee), lt)
|
||||
? baseExtremum(array, baseIteratee(iteratee), baseLt)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user