Creates a function that accepts up to n arguments ignoring any additional arguments.
The function to cap arguments for.
Rest
Optional
The arity cap.
Returns the new function.
Creates a function that accepts up to n arguments ignoring any additional arguments.