forked from jquery/api.jquery.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjQuery.isArray.xml
More file actions
29 lines (29 loc) · 1.14 KB
/
Copy pathjQuery.isArray.xml
File metadata and controls
29 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<entry type="method" name="jQuery.isArray" return="boolean" deprecated="3.2" removed="4.0">
<title>jQuery.isArray()</title>
<signature>
<added>1.3</added>
<argument name="obj" type="Object">
<desc>Object to test whether or not it is an array.</desc>
</argument>
</signature>
<desc>Determine whether the argument is an array.</desc>
<longdesc>
<div class="warning">
<p>Note: This API has been deprecated in jQuery 3.2; please use the native <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray"><code>Array.isArray</code></a> method instead.</p>
</div>
<p><code>$.isArray()</code> returns a Boolean indicating whether the object is a JavaScript array (not an array-like object, such as a jQuery object).</p>
</longdesc>
<example>
<desc>Finds out if the parameter is an array.</desc>
<code><![CDATA[
$( "b" ).append( "" + $.isArray([]) );
]]></code>
<html><![CDATA[
Is [] an Array? <b></b>
]]></html>
</example>
<category slug="utilities"/>
<category slug="version/1.3"/>
<category slug="deprecated/deprecated-3.2"/>
</entry>