Arity of a function
The number of arguments it takes
Yeah that’s it.
Example :
function isPositive (a) {return a > 0} function add (a,b) { return a + b} arity of **isPositive **is 1 arity of **add **is 2The number of arguments it takes
Yeah that’s it.
function isPositive (a) {return a > 0} function add (a,b) { return a + b} arity of **isPositive **is 1 arity of **add **is 2No posts