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 directly 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.

Requiring Functions

This function is directly required by the following functions:

  • getNS()
    Gets the value under the given root object and namespace.
  • hasNS()
    Tests to see if the given namespace exists under a specific root object.
  • setNS()
    Tries to set a value at the given namespace under the given root object.