Tests a given namespace under the given root object and returns the values at each step of that namespace.

This function is valid in v2.6.0 to v2.7.0. This function has been downloaded 0 times.


{*} root
Object to start at as the root of the proposed namespace.
{Array} namespace
An array of strings and/or numbers that represent the namespace chain to be tested under root.


An array having a length less than or equal to that of namespace where each will be the value for the corresponding namespace value.

Required Function

This function requires the following function which is included automatically:

  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.