The doc for $.isEmptyObject() is not correct #51

simevidas opened this Issue Aug 4, 2012 · 0 comments


None yet

2 participants


The documentation - - 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)".

@kswedberg kswedberg closed this in 5edb855 Sep 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment