MCPcopy
hub / github.com/lodash/lodash / baseUpdate

Function baseUpdate

lodash.js:4418–4420  ·  view source on GitHub ↗

* 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]

(object, path, updater, customizer)

Source from the content-addressed store, hash-verified

4416 * @returns {Object} Returns `object`.
4417 */
4418 function baseUpdate(object, path, updater, customizer) {
4419 return baseSet(object, path, updater(baseGet(object, path)), customizer);
4420 }
4421
4422 /**
4423 * The base implementation of methods like `_.dropWhile` and `_.takeWhile`

Callers 2

updateFunction · 0.85
updateWithFunction · 0.85

Calls 2

baseSetFunction · 0.85
baseGetFunction · 0.85

Tested by

no test coverage detected