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.

isType.js 529B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = isType;
  6. var _definitions = require("../definitions");
  7. function isType(nodeType, targetType) {
  8. if (nodeType === targetType) return true;
  9. if (_definitions.ALIAS_KEYS[targetType]) return false;
  10. const aliases = _definitions.FLIPPED_ALIAS_KEYS[targetType];
  11. if (aliases) {
  12. if (aliases[0] === nodeType) return true;
  13. for (const alias of aliases) {
  14. if (nodeType === alias) return true;
  15. }
  16. }
  17. return false;
  18. }