jQuery.isArray()Method

jQuery 杂项方法jQuery 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 yourself »

Definition and Usage

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


Syntax

$.isArray( object )

Parameter Description
object Any type Any value that needs to be determined.


jQuery 杂项方法jQuery Miscellaneous Methods

Other Extensions