Add _.mean.

This commit is contained in:
Agus Pina
2015-11-10 16:21:01 -03:00
committed by John-David Dalton
parent f0e8371997
commit 3408db91b6
3 changed files with 52 additions and 24 deletions

View File

@@ -12207,6 +12207,19 @@
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.mean');
(function() {
QUnit.test('should return the mean of an array of numbers', function(assert) {
assert.expect(1);
var array = [4, 2, 8, 6];
assert.strictEqual(_.mean(array), 5);
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.memoize');
(function() {
@@ -22426,7 +22439,7 @@
var acceptFalsey = lodashStable.difference(allMethods, rejectFalsey);
QUnit.test('should accept falsey arguments', function(assert) {
assert.expect(277);
assert.expect(278);
var emptyArrays = lodashStable.map(falsey, lodashStable.constant([]));