JQuery | type() method Last Updated : 27 Apr, 2020 Comments Improve Suggest changes Like Article Like Report This type() Method in jQuery is used to determine the internal JavaScript [[Class]] of an object. Syntax: jQuery.type( obj ) Parameters: The type() method accepts only one parameter that is mentioned above and described below: obj: This parameter is the object to get the internal JavaScript [[Class]] of. Return Value: It returns the string. Different obj return the following value for an object as a string. jQuery.type( true ) === "boolean" jQuery.type( new Boolean() ) === "boolean" jQuery.type( 3 ) === "number" jQuery.type( new Number(3) ) === "number" jQuery.type( undefined ) === "undefined" jQuery.type() === "undefined" jQuery.type( window.notDefined ) === "undefined" jQuery.type( null ) === "null" jQuery.type( "test" ) === "string" jQuery.type( new String("test") ) === "string" jQuery.type( function(){} ) === "function" jQuery.type( [] ) === "array" jQuery.type( new Array() ) === "array" jQuery.type( new Date() ) === "date" jQuery.type( new Error() ) === "error" jQuery.type( Symbol() ) === "symbol" jQuery.type( Object(Symbol()) ) === "symbol" jQuery.type( /test/ ) === "regexp" Example 1: In this example, the type() method check whether the parameter is a array or not. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | type() method</title> <script src="https://code.jquery.com/jquery-3.4.1.js"></script> <style> div { color: blue; } </style> </head> <body style="text-align:center;"> <h1 style="color: green"> GeeksForGeeks </h1> <h3>JQuery | type() method</h3> <p> Check Whether the [] is array type:</p> <b></b> <script> $( "b" ).append( "" + jQuery.type( [] ) === "array"); </script> </body> </html> Output: Example 2: In this example, the type() method the object is undefined or null. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | type() method</title> <script src="https://code.jquery.com/jquery-3.4.1.js"></script> <style> b { color: blue; } </style> </head> <body style="text-align:center;"> <h1 style="color: green"> GeeksForGeeks </h1> <h3>JQuery | type() method</h3> <p> If Object is undefined or null, <br>Value return:</p> <b></b> <script> $( "b" ).append("undefined : " + jQuery.type( undefined )+ "<br>"+ "window.notDefined : " + jQuery.type(window.notDefined )+ "<br>"+ "null : " + jQuery.type( null )+ "<br>" ); </script> </body> </html> Output: Comment More infoAdvertise with us Next Article JQuery | type() method S SHUBHAMSINGH10 Follow Improve Article Tags : Web Technologies JQuery jQuery-Methods Similar Reads jQuery | Misc param() Method The param() method in jQuery is used to create a representation of an array or an object. This representation is created in a serialized way. This serialized values can be used in making an ajax request in URL. Syntax: $.param(object, trad) Parameter: object: Specifies an array or object to serializ 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 event.type Property The jQuery event.type is an inbuilt property that is used to return which event type is started. Syntax: event.typeParameter: It does not accept any parameter because it is a property, not a function. Example 1: This example shows the working of an event.type property. HTML <!DOCTYPE html> 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 | 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 Like