JQuery | isEmptyObject() method Last Updated : 27 Apr, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report This isEmptyObject() Method in jQuery is used to determines if an object is empty. Syntax: jQuery.isEmptyObject( object ) Parameters: The isEmptyObject() method accepts only one parameter that is mentioned above and described below: object : This parameter is the object that will be checked to see if it's empty. Return Value: It returns the boolean value. Below examples illustrate the use of isEmptyObject() method in jQuery: Example 1: In this example, the isEmptyObject() method checks an object to see if it's empty. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | isEmptyObject() method</title> <script src="https://code.jquery.com/jquery-3.4.1.js"></script> </head> <body style="text-align:center;"> <h1 style="color: green"> GeeksForGeeks </h1> <h3>JQuery | isEmptyObject() method</h3> <b>Whether '{}' is a Empty Object : </b> <p></p> <script> $( "p" ).append( "" + $.isEmptyObject({})); </script> </body> </html> Output: Example 2: In this example, the isEmptyObject() method also checks an object to see if it's empty. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | isEmptyObject() method</title> <script src="https://code.jquery.com/jquery-3.4.1.js"></script> </head> <body style="text-align:center;"> <h1 style="color: green"> GeeksForGeeks </h1> <h3>JQuery | isEmptyObject() method</h3> <b>Whether String is a Empty Object : </b> <p id ="gfg"></p> <b>Whether Array is a Empty Object : </b> <p id ="gfg1"></p> <script> // string ="Shubham" $( "#gfg" ).append( "Shubham : " + $.isEmptyObject("Shubham")); // array $( "#gfg1" ).append( "[1, 3, 4, 6, 8] : " + $.isEmptyObject([1, 3, 4, 6, 8])); </script> </body> </html> Output: Comment More infoAdvertise with us Next Article JQuery | isFunction() method S SHUBHAMSINGH10 Follow Improve Article Tags : Web Technologies JQuery jQuery-Misc Similar Reads JQuery | isPlainObject() Method This isPlainObject() Method in jQuery is used to check to see if an object is a plain object. Syntax: jQuery.isPlainObject( obj ) Parameters: This method accept a single parameter that is mentioned above and described below: obj: This parameter holds the object that will be checked to see if it's a 2 min read jQuery is() Method The is() method is used to check if one of the selected elements matches the selectorElement Syntax: $(selector).is(selectorElement, function(index, element))Parameters: This method accepts parameters above mentioned and below described:- selector: It is an optional parameter. It specifies the selec 1 min read JQuery | isArray() method This isArray() Method in jQuery is used to determines whether the argument is an array. Syntax: jQuery.isArray( object ) Parameters: The isArray() method accepts only one parameter that is mentioned above and described below: object : This parameter is the object to test whether or not it is an arra 2 min read JQuery | isFunction() method This isFunction() Method in jQuery is used to determines if its argument is callable as a function. Syntax: jQuery.isFunction( value ) Parameters: The isFunction() method accepts only one parameter that is mentioned above and described below: value : This parameter is the value to be tested. Return 2 min read JQuery | isWindow() Method This isWindow() Method in jQuery is used to determine whether the argument is a window. Syntax: jQuery.isWindow( obj ) Parameters: This method accept a single parameter which is mentioned above and described below: obj: This parameter holds the object to test whether or not it is a window. Return Va 1 min read JQuery hasData() method This hasData() method in JQuery is used to determine whether an element has any jQuery data associated with it. This data may be text, event associated with element. There are two examples discussed below: Syntax: jQuery.hasData(element)Arguments: element: This parameter is a DOM element which is to 2 min read Like