Writes value at the given dot-separated path of obj, creating the intermediate steps that do not exist yet.
An intermediate is created as an array if the segment indexing it is a number, and as an object otherwise.
Parameters
obj: object
path: string
value: unknown
Returns void
See
getOnPath for the counterpart that reads such a path
Writes
valueat the given dot-separatedpathofobj, creating the intermediate steps that do not exist yet. An intermediate is created as an array if the segment indexing it is a number, and as an object otherwise.