Tries to set a value at the given path under the given root object.

This function is valid in v2.8.0 to v2.24.2. This function has been downloaded 40 times.


{*} root
Object to start at as the root of the proposed path.
{Array} path
An array of strings and/or numbers that represent the path to be traversed under root.
{*} value
The value to be assigned under the specified path within the root object.


true if value is successfully set under the given path, otherwise false.

Required Functions

This function directly requires the following functions which are included automatically:

  • isPrimitive()
    Determines if something is a primitive or not. If not a primitive it must be some form of object.
  • testAt()
    Tests a given path under the given root object and returns the values at each step of that path.