Revision 74813 of Function.arity

  • Revision slug: JavaScript/Reference/Global_Objects/Function/arity
  • Revision title: arity
  • Revision id: 74813
  • Created:
  • Creator: evilpie
  • Is current revision? No
  • Comment 3 words added, 2 words removed

Revision Content

{{ Obsolete_header() }}

Summary

Specifies the number of arguments expected by the function.

Property of Function
Implemented in JavaScript 1.2
ECMAScript Edition None

Description

The arity property no longer exists and has been replaced by the Function.prototype.length property.

{{ languages( { "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/Function/arity" } ) }}

Revision Source

<p>{{ Obsolete_header() }}</p>
<h2 id="Summary" name="Summary">Summary</h2>
<p>Specifies the number of arguments expected by the function.</p>
<table class="standard-table"> <thead> <tr> <th class="header" colspan="2">Property of <a href="/en/JavaScript/Reference/Global_Objects/Function" title="en/JavaScript/Reference/Global_Objects/Function"><code>Function</code></a></th> </tr> </thead> <tbody> <tr> <td>Implemented in</td> <td>JavaScript 1.2</td> </tr> <tr> <td>ECMAScript Edition</td> <td>None</td> </tr> </tbody>
</table>
<h2 id="Description" name="Description">Description</h2>
<p class="note">The <code>arity</code> property no longer exists and has been replaced by the <code><a href="/en/JavaScript/Reference/Global_Objects/Function/length" title="en/JavaScript/Reference/Global_Objects/Function/length">Function.prototype.length</a></code> property.</p>
<p>{{ languages( { "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/Function/arity" } ) }}</p>
Revert to this revision