Object.isPrimitiveObject >= 0.1.2

Purpose

Check if the argument is the object form of a primitive

Description

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

Syntax

Object.isPrimitiveObject ( variable );

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

Comments