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.

isPlaceholderType.js 468B

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