deno.land / x / lodash@4.17.19 / npm-package / _baseUpdate.js

_baseUpdate.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
lodash

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉