1 var identity = require('./identity'),
2 overRest = require('./_overRest'),
3 setToString = require('./_setToString');
6 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
9 * @param {Function} func The function to apply a rest parameter to.
10 * @param {number} [start=func.length-1] The start position of the rest parameter.
11 * @returns {Function} Returns the new function.
13 function baseRest(func, start) {
14 return setToString(overRest(func, start, identity), func + '');
17 module.exports = baseRest;