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