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