YouTip LogoYouTip

Misc Isarray

jQuery.isArray() Method | Tutorial

Example

Determine if the specified parameter is an array.

Is [] an array?

$(function(){ $("b").append("" + $.isArray([])); })

Try it yourself Β»


Definition and Usage

The $.isArray() function is used to determine if the specified parameter is an array.


Syntax

$_.isArray( object )

Parameter Description
object Any type. The value to be checked.
← Misc IsfunctionMisc Grep β†’