Sha256: a71613b432b24f17f36824ba92e918e0bbc3011fcdf224565fbcc5446c7a1655
Contents?: true
Size: 644 Bytes
Versions: 12
Compression:
Stored size: 644 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isValidIdentifier; function _esutils() { const data = _interopRequireDefault(require("esutils")); _esutils = function () { return data; }; return data; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function isValidIdentifier(name) { if (typeof name !== "string" || _esutils().default.keyword.isReservedWordES6(name, true)) { return false; } else if (name === "await") { return false; } else { return _esutils().default.keyword.isIdentifierNameES6(name); } }
Version data entries
12 entries across 12 versions & 4 rubygems