setIn()

Sets a value under a root object after traversing the given path.

This function is valid in v2.23.0. This function has been downloaded 2 times.

Parameters

{*} root
The root object from which to start traversing path.
{Array} path
An array of names indicating the path under root that should be traversed.
{*} value
The value to set under root at the given path.

Returns

{*}
A reference to root. Even if the value cannot be set root will still be returned.

Required Function

This function directly requires the following function which is included automatically:

  • getAllIn()
    Get all of the values in root at each step of the given path.

Requiring Function

This function is directly required by the following function:

  • getAllIn()
    Get all of the values in root at each step of the given path.