Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 23:01:56 -07:00
parent 7d39d58e43
commit be0bf2681b
61 changed files with 445 additions and 420 deletions

View File

@@ -1,5 +1,5 @@
var baseCastFunction = require('./_baseCastFunction'),
baseUpdate = require('./_baseUpdate');
var baseUpdate = require('./_baseUpdate'),
castFunction = require('./_castFunction');
/**
* This method is like `_.update` except that it accepts `customizer` which is
@@ -27,7 +27,7 @@ var baseCastFunction = require('./_baseCastFunction'),
*/
function updateWith(object, path, updater, customizer) {
customizer = typeof customizer == 'function' ? customizer : undefined;
return object == null ? object : baseUpdate(object, path, baseCastFunction(updater), customizer);
return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
}
module.exports = updateWith;