Function: isPrimitive()

isPrimitive(val): boolean

Determines whether a value is a primitive.

Parameters

val

unknown

The value to check.

Returns

boolean

Returns true if the value is a primitive, false otherwise.