Closed
Description
The documentation - http://api.jquery.com/jQuery.isEmptyObject/ - states:
Description: Check to see if an object is empty (contains no properties).
This description is not correct. The function in question returns true if the given object doesn't contain any enumerable properties. However, the object may contain non-enumerable properties, and the function in question will in that case still return true
.
This fact contradicts with the description in the docs, which states that the function returns true
only if the given object doesn't contain any properties.
The description should at least state "(contains no enumerable properties)".
Metadata
Metadata
Assignees
Labels
No labels