Object.isPlainObject >= 0.1.2

Purpose

Check if the argument is a plain object

Description

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

Syntax

Object.isPlainObject ( variable );

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

Comments

Rick

Do you have any kind of tips for writing write-ups?

That's where I always struggle and I simply end up staring empty screen for very long time.