Bump to v4.7.0.

This commit is contained in:
John-David Dalton
2016-03-26 00:00:36 -07:00
parent a83b4ebd53
commit ce0b51888c
394 changed files with 1789 additions and 841 deletions

View File

@@ -1,10 +1,12 @@
import sum from './sum';
import baseMean from './_baseMean';
import identity from './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.
@@ -14,7 +16,7 @@ import sum from './sum';
* // => 5
*/
function mean(array) {
return sum(array) / (array ? array.length : 0);
return baseMean(array, identity);
}
export default mean;