Object.isPlainObject >= 0.1.2

Purpose

Check if the argument is a plain object

Syntax

Object.isPlainObject ( variable );

Plain objects are objects created with a literal `{}`, with `new Object` or with `Object.create(null)`

Parameters

variable
The variable to check

Return values

Boolean

True if it's a plain object, false otherwise

Examples

Object.isPlainObject({});>>> true

Object.isPlainObject(Object.create(null));>>> true

Object.isPlainObject([]);>>> false

Object.isPlainObject(new Informer);>>> false