MCPcopy
hub / github.com/lodash/lodash / max

Function max

lodash.js:16426–16430  ·  view source on GitHub ↗

* Computes the maximum value of `array`. If `array` is empty or falsey, * `undefined` is returned. * * @static * @since 0.1.0 * @memberOf _ * @category Math * @param {Array} array The array to iterate over. * @returns {*} Returns the maximum value. * @exa

(array)

Source from the content-addressed store, hash-verified

16424 * // => undefined
16425 */
16426 function max(array) {
16427 return (array && array.length)
16428 ? baseExtremum(array, identity, baseGt)
16429 : undefined;
16430 }
16431
16432 /**
16433 * This method is like `_.max` except that it accepts `iteratee` which is

Callers

nothing calls this directly

Calls 1

baseExtremumFunction · 0.85

Tested by

no test coverage detected