Afanasev_Stepan_PIbd-21_IP/ИП 2 лаба/node_modules/lodash/mean.js
[USERNAME] 0dd26716dc Lab2-5
2024-01-10 16:11:49 +04:00

23 lines
422 B
JavaScript

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;