arity
description
Returns a new function whose arity will be the first argument you provide to arity
and which will return the same result as the provided function. A good use case is when you want to limit how many arguments will passed to your function, if you do not control the context in which it is called.
example
Last updated