Urara-Blog/node_modules/.pnpm-store/v3/files/7d/5955740f8a846e6a3794f8399a18e0cf735f23a73bc676362d6d77ec4135e2722320ffb19b4ff61739f66a4a90aa0aa5c51d72881df4222126a9f91701bfdf
2022-08-14 01:14:53 +08:00

17 lines
559 B
Text

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