mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Bump to v4.11.2.
This commit is contained in:
4
max.js
4
max.js
@@ -1,4 +1,4 @@
|
||||
define(['./_baseExtremum', './gt', './identity'], function(baseExtremum, gt, identity) {
|
||||
define(['./_baseExtremum', './_baseGt', './identity'], function(baseExtremum, baseGt, identity) {
|
||||
|
||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||
var undefined;
|
||||
@@ -23,7 +23,7 @@ define(['./_baseExtremum', './gt', './identity'], function(baseExtremum, gt, ide
|
||||
*/
|
||||
function max(array) {
|
||||
return (array && array.length)
|
||||
? baseExtremum(array, identity, gt)
|
||||
? baseExtremum(array, identity, baseGt)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user