You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)".
The text was updated successfully, but these errors were encountered:
The documentation - http://api.jquery.com/jQuery.isEmptyObject/ - states:
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)".
The text was updated successfully, but these errors were encountered: