The object to modify.
The path of the property to set.
The function to produce the updated value.
Optional
customizer: SetWithCustomizer<T>The function to customize assigned values.
Returns object
.
4.6.0
var object = {};
_.updateWith(object, '[0][1]', _.constant('a'), Object);
// => { '0': { '1': 'a' } }
Optional
customizer: SetWithCustomizer<T>_.updateWith
Generated using TypeDoc
This method is like
_.update
except that it acceptscustomizer
which is invoked to produce the objects ofpath
. Ifcustomizer
returnsundefined
path creation is handled by the method instead. Thecustomizer
is invoked with three arguments: (nsValue, key, nsObject).Note: This method mutates
object
.