Checks if a value is an empty object (has no enumerable own properties).
The value to check.
True if the value is a non-null object with no enumerable own properties, false otherwise.
isEmptyObject({}); // trueisEmptyObject({ key: 'value' }); // falseisEmptyObject(null); // falseisEmptyObject([]); // false Copy
isEmptyObject({}); // trueisEmptyObject({ key: 'value' }); // falseisEmptyObject(null); // falseisEmptyObject([]); // false
Checks if a value is an empty object (has no enumerable own properties).