source: trip-planner-front/node_modules/lodash/_baseRest.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 559 bytes
RevLine 
[6a3a178]1var identity = require('./identity'),
2 overRest = require('./_overRest'),
3 setToString = require('./_setToString');
4
5/**
6 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
7 *
8 * @private
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.
12 */
13function baseRest(func, start) {
14 return setToString(overRest(func, start, identity), func + '');
15}
16
17module.exports = baseRest;
Note: See TracBrowser for help on using the repository browser.