mozilla

Compare Revisions

Function.arity

Change Revisions

Revision 417175:

Revision 417175 by Sheppy on

Revision 490257:

Revision 490257 by fscholz on

Title:
Function.arity
Function.arity
Slug:
Web/JavaScript/Reference/Global_Objects/Function/arity
Web/JavaScript/Reference/Global_Objects/Function/arity
Tags:
"JavaScript", "Function"
"Function", "JavaScript", "Obsolete", "Unimplemented", "Property"
Content:

Revision 417175
Revision 490257
n8      {{ Obsolete_header() }}n8      {{JSRef("Global_Objects", "Function")}} {{ Obsolete_header(
 >) }}
nn13    <p class="note">
14      The arity property used to return the number of arguments e
 >xpected by the function, however, it no longer exists and has bee
 >n replaced by the {{jsxref("Function.prototype.length")}} propert
 >y.
15    </p>
16    <h2 id="Specifications">
17      Specifications
18    </h2>
n14      Specifies the number of arguments expected by the function.n20      Implemented in JavaScript 1.2. Deprecated in JavaScript 1.4
 >.
n16    <table class="standard-table">n22    <h2 id="Browser_compatibility">
17      <thead>23      Browser compatibility
18        <tr>
19          <th class="header" colspan="2">
20            Property of <a href="/en-US/docs/JavaScript/Reference
>/Global_Objects/Function" title="JavaScript/Reference/Global_Obje 
>cts/Function"><code>Function</code></a> 
21          </th>
22        </tr>
23      </thead>
24      <tbody>
25        <tr>
26          <td>
27            Implemented in
28          </td>
29          <td>
30            JavaScript 1.2
31          </td>
32        </tr>
33        <tr>
34          <td>
35            ECMAScript Edition
36          </td>
37          <td>
38            None
39          </td>
40        </tr>
41      </tbody>
42    </table>
43    <h2 id="Description" name="Description">
44      Description
n46    <p class="note">n25    <p>
47      The <code>arity</code> property no longer exists and has be26      {{ CompatibilityTable() }}
>en replaced by the <code><a href="/en-US/docs/JavaScript/Referenc 
>e/Global_Objects/Function/length" title="JavaScript/Reference/Glo 
>bal_Objects/Function/length">Function.prototype.length</a></code> 
> property. 
tt28    <div id="compat-desktop">
29      <table class="compat-table">
30        <tbody>
31          <tr>
32            <th>
33              Feature
34            </th>
35            <th>
36              Chrome
37            </th>
38            <th>
39              Firefox (Gecko)
40            </th>
41            <th>
42              Internet Explorer
43            </th>
44            <th>
45              Opera
46            </th>
47            <th>
48              Safari
49            </th>
50          </tr>
51          <tr>
52            <td>
53              Basic support
54            </td>
55            <td>
56              {{ CompatUnknown() }}
57            </td>
58            <td>
59              {{ CompatNo() }}
60            </td>
61            <td>
62              {{ CompatUnknown() }}
63            </td>
64            <td>
65              {{ CompatUnknown() }}
66            </td>
67            <td>
68              {{ CompatUnknown() }}
69            </td>
70          </tr>
71        </tbody>
72      </table>
73    </div>
74    <div id="compat-mobile">
75      <table class="compat-table">
76        <tbody>
77          <tr>
78            <th>
79              Feature
80            </th>
81            <th>
82              Android
83            </th>
84            <th>
85              Chrome for Android
86            </th>
87            <th>
88              Firefox Mobile (Gecko)
89            </th>
90            <th>
91              IE Mobile
92            </th>
93            <th>
94              Opera Mobile
95            </th>
96            <th>
97              Safari Mobile
98            </th>
99          </tr>
100          <tr>
101            <td>
102              Basic support
103            </td>
104            <td>
105              {{ CompatUnknown() }}
106            </td>
107            <td>
108              {{ CompatUnknown() }}
109            </td>
110            <td>
111              {{ CompatNo() }}
112            </td>
113            <td>
114              {{ CompatUnknown() }}
115            </td>
116            <td>
117              {{ CompatUnknown() }}
118            </td>
119            <td>
120              {{ CompatUnknown() }}
121            </td>
122          </tr>
123        </tbody>
124      </table>
125    </div>
126    <h2 id="See_also" name="See_also">
127      See also
128    </h2>
129    <ul>
130      <li>{{jsxref("Function.prototype.length")}}
131      </li>
132    </ul>

Back to History