mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Bump to v4.10.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_baseCastFunction', './_baseUpdate'], function(baseCastFunction, baseUpdate) {
|
||||
define(['./_baseUpdate', './_castFunction'], function(baseUpdate, castFunction) {
|
||||
|
||||
/**
|
||||
* This method is like `_.set` except that accepts `updater` to produce the
|
||||
@@ -28,7 +28,7 @@ define(['./_baseCastFunction', './_baseUpdate'], function(baseCastFunction, base
|
||||
* // => 0
|
||||
*/
|
||||
function update(object, path, updater) {
|
||||
return object == null ? object : baseUpdate(object, path, baseCastFunction(updater));
|
||||
return object == null ? object : baseUpdate(object, path, castFunction(updater));
|
||||
}
|
||||
|
||||
return update;
|
||||
|
||||
Reference in New Issue
Block a user