YouTip LogoYouTip

Misc Isemptyobject

# jQuery.isEmptyObject() Method [![Image 3: jQuery Misc Methods](#)jQuery Misc Methods](#) ## Example Return the index of a specified element in an array $(function(){function fun(html){document.body.innerHTML += "
" + html; }fun($.isEmptyObject({})); // true fun($.isEmptyObject({foo: "bar"})); // false }) [Try it Β»](#) * * * ## Definition and Usage The $.isEmptyObject() function is used to check if an object is empty (contains no properties). * * * ## Syntax _$_.isEmptyObject( object ) | Parameter | Description | | :--- | :--- | | _object_ | object type. The object to check if it is empty. | * * jQuery Misc Methods](#)
← Misc IswindowMisc Globaleval β†’