2e3847aa7488cf12d8385bf497b8f4e34a55913573cb9ee761137e0a2dae5114557cfb0ae724101b812f88c525766f904bcc1fd61e8046afd2e2b222c1619d 455 B

12345678910111213141516
  1. import flatten from './flatten.js';
  2. import overRest from './_overRest.js';
  3. import setToString from './_setToString.js';
  4. /**
  5. * A specialized version of `baseRest` which flattens the rest array.
  6. *
  7. * @private
  8. * @param {Function} func The function to apply a rest parameter to.
  9. * @returns {Function} Returns the new function.
  10. */
  11. function flatRest(func) {
  12. return setToString(overRest(func, undefined, flatten), func + '');
  13. }
  14. export default flatRest;