isPrimitive()

Determines if something is a primitive or not. If not a primitive it must be some form of object.

This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 92 times.

Parameter

{*} arg
The argument which will be determined as being either a primitive (eg. boolean, number, string, etc.) or a non-primitive.

Returns

{boolean}
true will be returned if arg is simply a primitive, otherwise false will be returned.

Requiring Function

This function is directly required by the following function:

  • setNS()
    Tries to set a value at the given namespace under the given root object.