hasNS()

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

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

Parameters

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

Returns

{boolean}
true if the specified namespace is found under root, otherwise false.

Required Function

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

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