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.

_setToArray.js 345B

123456789101112131415161718
  1. /**
  2. * Converts `set` to an array of its values.
  3. *
  4. * @private
  5. * @param {Object} set The set to convert.
  6. * @returns {Array} Returns the values.
  7. */
  8. function setToArray(set) {
  9. var index = -1,
  10. result = Array(set.size);
  11. set.forEach(function(value) {
  12. result[++index] = value;
  13. });
  14. return result;
  15. }
  16. module.exports = setToArray;