1 var baseExtremum = require('./_baseExtremum'),
2 baseGt = require('./_baseGt'),
3 identity = require('./identity');
6 * Computes the maximum value of `array`. If `array` is empty or falsey,
7 * `undefined` is returned.
13 * @param {Array} array The array to iterate over.
14 * @returns {*} Returns the maximum value.
17 * _.max([4, 2, 8, 6]);
24 return (array && array.length)
25 ? baseExtremum(array, identity, baseGt)