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.

is-iterable.js 360B

12345678910111213141516
  1. "use strict";
  2. var typeOf = require("@sinonjs/commons").typeOf;
  3. /**
  4. * Returns `true` for iterables
  5. *
  6. * @private
  7. * @param {*} value A value to examine
  8. * @returns {boolean} Returns `true` when `value` looks like an iterable
  9. */
  10. function isIterable(value) {
  11. return Boolean(value) && typeOf(value.forEach) === "function";
  12. }
  13. module.exports = isIterable;