hasAt()

Tests to see if the given path exists under a specific root object.

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

Parameters

{*} 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 tested under root.

Returns

{boolean}
true if the specified path is found 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.