Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
584 B
Plaintext
19 lines
584 B
Plaintext
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = isValidIdentifier;
|
|
var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
|
|
function isValidIdentifier(name, reserved = true) {
|
|
if (typeof name !== "string") return false;
|
|
if (reserved) {
|
|
if ((0, _helperValidatorIdentifier.isKeyword)(name) || (0, _helperValidatorIdentifier.isStrictReservedWord)(name, true)) {
|
|
return false;
|
|
}
|
|
}
|
|
return (0, _helperValidatorIdentifier.isIdentifierName)(name);
|
|
}
|
|
|
|
//# sourceMappingURL=isValidIdentifier.js.map
|