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.13.1. This function has been downloaded 27 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.