mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Bump to v3.9.2.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import createExtremum from '../internal/createExtremum';
|
||||
import lt from '../lang/lt';
|
||||
|
||||
/** Used as references for `-Infinity` and `Infinity`. */
|
||||
var POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
|
||||
|
||||
/**
|
||||
* Gets the minimum value of `collection`. If `collection` is empty or falsey
|
||||
* `Infinity` is returned. If an iteratee function is provided it is invoked
|
||||
@@ -48,6 +51,6 @@ import lt from '../lang/lt';
|
||||
* _.min(users, 'age');
|
||||
* // => { 'user': 'barney', 'age': 36 }
|
||||
*/
|
||||
var min = createExtremum(lt, Infinity);
|
||||
var min = createExtremum(lt, POSITIVE_INFINITY);
|
||||
|
||||
export default min;
|
||||
|
||||
Reference in New Issue
Block a user