Object.isPrimitiveObject >= 0.1.2

Purpose

Check if the argument is the object form of a primitive

Syntax

Object.isPrimitiveObject ( variable );

In this context, primitive objects are things like `new String` or `new Number`.

Parameters

variable
The variable to check

Return values

Boolean

True if it's a primitive object, false otherwise

Examples

Object.isPrimitiveObject(new String);>>> true

Object.isPrimitiveObject(new Number);>>> true

Object.isPrimitiveObject(1);>>> false