mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Bump to v3.9.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import arrayMax from '../internal/arrayMax';
|
||||
import createExtremum from '../internal/createExtremum';
|
||||
import gt from '../lang/gt';
|
||||
|
||||
/**
|
||||
* Gets the maximum value of `collection`. If `collection` is empty or falsey
|
||||
@@ -48,6 +48,6 @@ import createExtremum from '../internal/createExtremum';
|
||||
* _.max(users, 'age');
|
||||
* // => { 'user': 'fred', 'age': 40 }
|
||||
*/
|
||||
var max = createExtremum(arrayMax);
|
||||
var max = createExtremum(gt, -Infinity);
|
||||
|
||||
export default max;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import arrayMin from '../internal/arrayMin';
|
||||
import createExtremum from '../internal/createExtremum';
|
||||
import lt from '../lang/lt';
|
||||
|
||||
/**
|
||||
* Gets the minimum value of `collection`. If `collection` is empty or falsey
|
||||
@@ -48,6 +48,6 @@ import createExtremum from '../internal/createExtremum';
|
||||
* _.min(users, 'age');
|
||||
* // => { 'user': 'barney', 'age': 36 }
|
||||
*/
|
||||
var min = createExtremum(arrayMin, true);
|
||||
var min = createExtremum(lt, Infinity);
|
||||
|
||||
export default min;
|
||||
|
||||
Reference in New Issue
Block a user