fdsfd
This commit is contained in:
parent
628618df89
commit
e031240dff
3749 changed files with 1120848 additions and 1 deletions
18
node_modules/lodash/_baseUpdate.js
generated
vendored
Normal file
18
node_modules/lodash/_baseUpdate.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
var baseGet = require('./_baseGet'),
|
||||
baseSet = require('./_baseSet');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.update`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to modify.
|
||||
* @param {Array|string} path The path of the property to update.
|
||||
* @param {Function} updater The function to produce the updated value.
|
||||
* @param {Function} [customizer] The function to customize path creation.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function baseUpdate(object, path, updater, customizer) {
|
||||
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
||||
}
|
||||
|
||||
module.exports = baseUpdate;
|
Loading…
Add table
Add a link
Reference in a new issue