jQuery.isArray()
Categories: Utilities
jQuery.isArray( obj )Returns: boolean
Description: Determine whether the argument is an array.
-
jQuery.isArray( obj )
version added: 1.0obj Object to test whether or not it is an array.
$.isArray()
returns a Boolean indicating whether the object is a JavaScript array (not an array-like object, such as a jQuery object).
-
Finds out if the parameter is an array.
HTML:
Is [] an Array? <b></b>
Code:
$("b").append( "" + $.isArray([]) );