mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v4.10.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
var baseCastFunction = require('./_baseCastFunction'),
|
||||
baseUpdate = require('./_baseUpdate');
|
||||
var baseUpdate = require('./_baseUpdate'),
|
||||
castFunction = require('./_castFunction');
|
||||
|
||||
/**
|
||||
* This method is like `_.set` except that accepts `updater` to produce the
|
||||
@@ -29,7 +29,7 @@ var baseCastFunction = require('./_baseCastFunction'),
|
||||
* // => 0
|
||||
*/
|
||||
function update(object, path, updater) {
|
||||
return object == null ? object : baseUpdate(object, path, baseCastFunction(updater));
|
||||
return object == null ? object : baseUpdate(object, path, castFunction(updater));
|
||||
}
|
||||
|
||||
module.exports = update;
|
||||
|
||||
Reference in New Issue
Block a user