Remove baseIteratee and castFunction.

This commit is contained in:
John-David Dalton
2017-01-09 17:17:03 -08:00
parent efcf51c7bf
commit 65654f8f9e
96 changed files with 140 additions and 537 deletions

View File

@@ -1,5 +1,4 @@
import baseUpdate from './_baseUpdate.js';
import castFunction from './_castFunction.js';
/**
* This method is like `_.update` except that it accepts `customizer` which is
@@ -27,7 +26,7 @@ import castFunction from './_castFunction.js';
*/
function updateWith(object, path, updater, customizer) {
customizer = typeof customizer == 'function' ? customizer : undefined;
return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
return object == null ? object : baseUpdate(object, path, updater, customizer);
}
export default updateWith;