added all files

This commit is contained in:
DJj123dj
2021-11-14 09:12:55 +01:00
commit 918f5f4243
2793 changed files with 298038 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const identifierRegex = /^[a-z$_][$\w]*$/i;
const reservedSet = new Set([
'undefined',
'null',
'true',
'false',
'super',
'this',
'Infinity',
'NaN'
]);
/**
Test if the string is a valid JavaScript identifier.
@param string - String to test.
*/
exports.default = (string) => string && !reservedSet.has(string) && identifierRegex.test(string);