The _.rest() method is used to create a function that calls the given func with the this binding of the created function along with an array of arguments from the start position and beyond.
_.rest( func, start )
Parameters: This method accepts two parameters as mentioned above and described below:
- func: It is the function that is used to apply a rest parameter to.
- start: It is the start position of the rest parameter. It is an optional parameter.
Return Value: This method returns the new function.
Teacher called nidhi, nisha, and preeti.