The object to modify.
The path of the property to set.
Optional
updater: ((...any: any[]) => any)The function to produce the updated value.
Rest
...any: any[]Optional
customizer: ((...any: any[]) => any)The function to customize assigned values.
Rest
...any: any[]Returns object
.
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
.