mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Bump to v4.10.0.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user