Bump to v4.7.0.

This commit is contained in:
John-David Dalton
2016-03-26 00:00:01 -07:00
parent 6c2960211f
commit d46bcaa98d
389 changed files with 3333 additions and 1627 deletions

View File

@@ -1,10 +1,11 @@
define(['./sum'], function(sum) {
define(['./_baseMean', './identity'], function(baseMean, 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 +15,7 @@ define(['./sum'], function(sum) {
* // => 5
*/
function mean(array) {
return sum(array) / (array ? array.length : 0);
return baseMean(array, identity);
}
return mean;