Urara-Blog/node_modules/.pnpm-store/v3/files/5c/992542066d8ffa76dbef8785befb116cf4e6f9e5d680759620fa9aac4e284f94c753829b2d7fca98b4ca10106f79e06105fba6cec372686cd003fa0bb87c7f
2022-08-14 01:14:53 +08:00

22 lines
422 B
Text

var baseMean = require('./_baseMean'),
identity = require('./identity');
/**
* Computes the mean of the values in `array`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Math
* @param {Array} array The array to iterate over.
* @returns {number} Returns the mean.
* @example
*
* _.mean([4, 2, 8, 6]);
* // => 5
*/
function mean(array) {
return baseMean(array, identity);
}
module.exports = mean;