Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

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