Add _.updateWith.

This commit is contained in:
John-David Dalton
2016-02-28 11:30:16 -08:00
parent f8132e3be4
commit 0f298de36a
2 changed files with 48 additions and 15 deletions

View File

@@ -18466,9 +18466,9 @@
QUnit.module('set methods');
lodashStable.each(['update', 'set', 'setWith'], function(methodName) {
lodashStable.each(['update', 'updateWith', 'set', 'setWith'], function(methodName) {
var func = _[methodName],
isUpdate = methodName == 'update';
isUpdate = methodName == 'update' || methodName == 'updateWith';
var oldValue = 1,
value = 2,
@@ -24441,7 +24441,7 @@
var acceptFalsey = lodashStable.difference(allMethods, rejectFalsey);
QUnit.test('should accept falsey arguments', function(assert) {
assert.expect(299);
assert.expect(300);
var emptyArrays = lodashStable.map(falsey, alwaysEmptyArray);