reserved2
Version:
Reserved words that may not be used as variables, functions, methods, or object identifiers, since ECMAScript specifies special behavior for them.
17 lines (16 loc) • 1.77 kB
JavaScript
!function(e, t) {
"object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define([ "exports" ], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).Reserved2 = {});
}(this, (function(e) {
"use strict";
const t = Object.freeze([ "abstract", "arguments", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "debugger", "default", "delete", "do", "double", "else", "enum", "eval", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof", "int", "interface", "let", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "typeof", "var", "void", "volatile", "while", "with", "yield" ]), i = Object.freeze([ "Array", "Date", "eval", "function", "hasOwnProperty", "Infinity", "isFinite", "isNaN", "isPrototypeOf", "length", "Math", "name", "NaN", "Number", "Object", "prototype", "String", "toString", "undefined", "valueOf" ]), n = Object.freeze([ ...t, ...i ]), r = Object.freeze(n.map((e => e.toLowerCase())));
e.builtins = i, e.containReservedOrBuiltins = function containReservedOrBuiltins(e) {
return -1 !== n.indexOf(e);
}, e.default = n, e.isReservedOrBuiltins = function isReservedOrBuiltins(e) {
return n.includes(e);
}, e.isReservedOrBuiltinsLC = function isReservedOrBuiltinsLC(e) {
return r.includes(e);
}, e.mixinReservedBuiltins = n, e.mixinReservedBuiltinsLC = r, e.reserved = t, Object.defineProperty(e, "__esModule", {
value: !0
});
}));
//# sourceMappingURL=index.umd.production.min.cjs.map