Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla

Revision 308417 of Function.arity

  • Revision slug: JavaScript/Reference/Global_Objects/Function/arity
  • Revision title: Function.arity
  • Revision id: 308417
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment Page title. Tag. HTML ClieanUp.

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.

Revision Source

<div>{{ Obsolete_header() }}</div>

<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-US/docs/JavaScript/Reference/Global_Objects/Function" title="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-US/docs/JavaScript/Reference/Global_Objects/Function/length" title="JavaScript/Reference/Global_Objects/Function/length">Function.prototype.length</a></code> property.</p>
Revert to this revision