1 line
1.1 KiB
JSON
1 line
1.1 KiB
JSON
{"name":"jQuery.isEmptyObject","type":"method","title":"jQuery.isEmptyObject()","deprecated":null,"removed":null,"desc":"Check to see if an object is empty (contains no enumerable properties).","categories":["utilities","version/1.4"],"entries":[{"return":"Boolean","signatures":{"added":"1.4","argument":{"desc":"The object that will be checked to see if it's empty.","name":"object","type":"Object"}},"examples":{"desc":"Check an object to see if it's empty.","code":"\njQuery.isEmptyObject({}); // true\njQuery.isEmptyObject({ foo: \"bar\" }); // false\n"},"longdesc":"\n <p>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 <code>Object</code> 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 <a href=\"/jQuery.isPlainObject/\"><code>$.isPlainObject()</code></a></p>\n "}]} |