**Jump to**

## Arity

The arity of a JavaScript function is the number of arguments *expected* by the function. With fjs.curry it is possible to extend this arity beyond the expected length.

### Example

The “add” function can now take any number of arguments (>= the expected arity) and the numbers will be summed. The “add” function can also be curried in the usual way by partial invocation (only supplying one argument, “add3”).

The higher order function “add3” can also take any number of arguments, beyond the expected arity.