mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.11.2.
This commit is contained in:
4
max.js
4
max.js
@@ -1,5 +1,5 @@
|
||||
var baseExtremum = require('./_baseExtremum'),
|
||||
gt = require('./gt'),
|
||||
baseGt = require('./_baseGt'),
|
||||
identity = require('./identity');
|
||||
|
||||
/**
|
||||
@@ -22,7 +22,7 @@ var baseExtremum = require('./_baseExtremum'),
|
||||
*/
|
||||
function max(array) {
|
||||
return (array && array.length)
|
||||
? baseExtremum(array, identity, gt)
|
||||
? baseExtremum(array, identity, baseGt)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user