Checks if an object is empty (has no own properties).
isEmptyObject({}) // true Copy
isEmptyObject({}) // true
isEmptyObject({ key: 'value' }) // false Copy
isEmptyObject({ key: 'value' }) // false
The object to check.
true if the object is empty, false otherwise.
true
false
Checks if an object is empty (has no own properties).
Example
Example