JavaScript » Function » arity

Syntax:
[Function.]arity

The arity property specifies the number of arguments expected by a function. It is external to the function and is in contrast to the arguments.length property which specifies the number of arguments actually passed to a function.