MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / isIdentifierPart

Function isIdentifierPart

scripts/libs/esprima.js:261–268  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

259 }
260
261 function isIdentifierPart(ch) {
262 return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)
263 (ch >= 0x41 && ch <= 0x5A) || // A..Z
264 (ch >= 0x61 && ch <= 0x7A) || // a..z
265 (ch >= 0x30 && ch <= 0x39) || // 0..9
266 (ch === 0x5C) || // \ (backslash)
267 ((ch >= 0x80) && Regex.NonAsciiIdentifierPart.test(String.fromCharCode(ch)));
268 }
269
270 // 7.6.1.2 Future Reserved Words
271

Callers 3

getEscapedIdentifierFunction · 0.85
getIdentifierFunction · 0.85
scanRegExpFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected