e6adc72b2fe096f2ef7359e233537a09104c7c4469e0efe0c1a6c1033f5c8068.json 720 B

1
  1. {"ast":null,"code":"import baseExtremum from './_baseExtremum.js';\nimport baseGt from './_baseGt.js';\nimport identity from './identity.js';\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return array && array.length ? baseExtremum(array, identity, baseGt) : undefined;\n}\nexport default max;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}