MCPcopy
hub / github.com/lodash/lodash / updateWith

Function updateWith

lodash.js:13996–13999  ·  view source on GitHub ↗

* This method is like `_.update` except that it accepts `customizer` which is * invoked to produce the objects of `path`. If `customizer` returns `undefined` * path creation is handled by the method instead. The `customizer` is invoked * with three arguments: (nsValue, key, nsObject)

(object, path, updater, customizer)

Source from the content-addressed store, hash-verified

13994 * // => { '0': { '1': 'a' } }
13995 */
13996 function updateWith(object, path, updater, customizer) {
13997 customizer = typeof customizer == 'function' ? customizer : undefined;
13998 return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
13999 }
14000
14001 /**
14002 * Creates an array of the own enumerable string keyed property values of `object`.

Callers

nothing calls this directly

Calls 2

baseUpdateFunction · 0.85
castFunctionFunction · 0.85

Tested by

no test coverage detected