Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery.isArray() method

jQuery.isArray() method

jQuery Miscellaneous MethodsjQuery Miscellaneous Methods

Example

Determine whether the specified argument is an array

[

]

Is it an array?<

b

b

<script$(function(){$("b" )>

.

append

(

"

"

  • $.

isArray

(

[

]

)

)

;

}

)

script

Try it »


Definition and Usage

The $.isArray() function is used to determine whether the specified argument is an array.


Syntax

$

.isArray( object )

Parameters Description
object Any type: The arbitrary value to be checked.

jQuery Miscellaneous MethodsjQuery Miscellaneous Methods