Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_flatRest.js 457B

12345678910111213141516
  1. var flatten = require('./flatten'),
  2. overRest = require('./_overRest'),
  3. setToString = require('./_setToString');
  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. module.exports = flatRest;