jQuery.isArray()

Determine whether the argument is an array.

jQuery.isArray(obj)🡢 boolean

obj ObjectObject 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

Looking for a Web Developer?

👋

Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)