jQuery.isArray()
Determine whether the argument is an array.
jQuery.isArray(obj)🡢 boolean
obj
| Object | Object to test whether or not it is an array. |
Note: This API has been deprecated in jQuery 3.2; please use the native Array.isArray
method instead.
$.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.
JS
Is [] an Array? <b></b>
HTML
$("b").append("" + $.isArray([]));
DEMO