Object.isEmpty >= 0.1.0

Purpose

Determine if the object is empty

Syntax

Object.isEmpty ( ObjectobjBooleaninclude_prototype= false );


Parameters

obj
The object to check
include_prototype
If true, prototypal properties also count

Return values

Boolean

Examples

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

Object.isEmpty({a: 1});
>>> false