MCPcopy
hub / github.com/lodash/lodash / update

Function update

lodash.js:13968–13970  ·  view source on GitHub ↗

* This method is like `_.set` except that accepts `updater` to produce the * value to set. Use `_.updateWith` to customize `path` creation. The `updater` * is invoked with one argument: (value). * * **Note:** This method mutates `object`. * * @static * @memberOf _

(object, path, updater)

Source from the content-addressed store, hash-verified

13966 * // => 0
13967 */
13968 function update(object, path, updater) {
13969 return object == null ? object : baseUpdate(object, path, castFunction(updater));
13970 }
13971
13972 /**
13973 * This method is like `_.update` except that it accepts `customizer` which is

Callers

nothing calls this directly

Calls 2

baseUpdateFunction · 0.85
castFunctionFunction · 0.85

Tested by

no test coverage detected