deleteAt()

Tries to delete the value at the specified path starting at root.

This function is valid in v2.8.0 to v2.24.3. This function has been downloaded 60 times.

Parameters

{*} root
Root object at which the path to delete from will start.
{Array} path
Array of numbers/strings that represents the path to the value that should be deleted.

Returns

{boolean}
true if the value can be deleted from the specified path under root, otherwise false.

Required Function

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

  • testAt()
    Tests a given path under the given root object and returns the values at each step of that path.