All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash.mean.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
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;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy