Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 22:55:59 -07:00
parent b7e3b3febd
commit f10bb8b80b
53 changed files with 162 additions and 158 deletions

View File

@@ -1,5 +1,5 @@
import baseCastFunction from './_baseCastFunction';
import baseUpdate from './_baseUpdate';
import castFunction from './_castFunction';
/**
* This method is like `_.update` except that it accepts `customizer` which is
@@ -27,7 +27,7 @@ import baseUpdate from './_baseUpdate';
*/
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);
}
export default updateWith;