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.

isValidIdentifier.js 540B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = isValidIdentifier;
  6. var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
  7. function isValidIdentifier(name, reserved = true) {
  8. if (typeof name !== "string") return false;
  9. if (reserved) {
  10. if ((0, _helperValidatorIdentifier.isKeyword)(name) || (0, _helperValidatorIdentifier.isStrictReservedWord)(name, true)) {
  11. return false;
  12. }
  13. }
  14. return (0, _helperValidatorIdentifier.isIdentifierName)(name);
  15. }