Content-Length: 46040 | pFad | https://api.jquery.com/jQuery.isEmptyObject/

jQuery.isEmptyObject() | jQuery API Documentation

jQuery.isEmptyObject()


jQuery.isEmptyObject( object )Returns: Boolean

Description: Check to see if an object is empty (contains no enumerable properties).

As of jQuery 1.4 this method checks both properties on the object itself and properties inherited from prototypes (in that it doesn't use hasOwnProperty). The argument should always be a plain JavaScript Object as other types of object (DOM elements, primitive strings/numbers, host objects) may not give consistent results across browsers. To determine if an object is a plain JavaScript object, use $.isPlainObject()

Example:

Check an object to see if it's empty.

1
2
jQuery.isEmptyObject({}); // true
jQuery.isEmptyObject({ foo: "bar" }); // false








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://api.jquery.com/jQuery.isEmptyObject/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy