Object.isPrimitive >= 0.1.3
Purpose
Check if the argument is a primitive
Syntax
Object.isPrimitive
(
variable
);
Parameters
variable
- The variable to check
Return values
Examples
Object.isPrimitive(1);>>> true
Object.isPrimitive('test');>>> true
Object.isPrimitive(new Number(1));>>> false
Object.isPrimitive(new String('test'));>>> false
Comments