JQuery | isArray() method Last Updated : 27 Apr, 2020 Comments Improve Suggest changes Like Article Like Report 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 array. Return Value: It returns the boolean value. Below examples illustrate the use of isArray() method in jQuery: Example 1: In this example, the isArray() method checks the parameter is an array. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | isArray() 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 | isArray() method</h3> <b>Whether "{}" is a Array Object : </b> <p></p> <script> $( "p" ).append( "" + $.isArray("{}")); </script> </body> </html> Output: Example 2: In this example, the isArray() method also checks the parameter is an array. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | isArray() 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 | isArray() method</h3> <b>Whether String is a Array Object : </b> <p id ="gfg"></p> <b>Whether Array is a Array Object : </b> <p id ="gfg1"></p> <script> // string ="Shubham" $( "#gfg" ).append( "Shubham : " + $.isArray("Shubham")); // array $( "#gfg1" ).append( "[1, 3, 4, 6, 8] : " + $.isArray([1, 3, 4, 6, 8])); </script> </body> </html> Output: Comment More infoAdvertise with us Next Article JQuery | isArray() method S SHUBHAMSINGH10 Follow Improve Article Tags : Web Technologies JQuery jQuery-Methods Similar Reads jQuery inArray() method This inArray() Method in jQuery is used to search for a specific value in an array and return its index (or -1 if not found). SyntaxjQuery.inArray(val, arr [, Index])Parameters The inArray() method accepts three parameters that are described below: val: The value to search in an array.arr: Any array 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 JQuery | isNumeric() method This isNumeric() Method in jQuery is used to determines whether its argument represents a JavaScript number. Syntax: jQuery.isNumeric( value ) Parameters: The isNumeric() method accepts only one parameter that is mentioned above and described below: value: This parameter is the value to be tested. R 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 Lodash _.isArray() Method Lodash _.isArray() method checks if the given value can be classified as an Array Value or not.Syntax:_.isArray(value);Parameters:value: This parameter holds the value that needs to be Checked for an Array.Return Value: This method returns a Boolean value.Example 1: In this example, we are checking 2 min read Like