MCPcopy
hub / github.com/zxlie/FeHelper / reserved_array

Function reserved_array

apps/code-beautify/beautify.js:307–309  ·  view source on GitHub ↗
(token, words)

Source from the content-addressed store, hash-verified

305 }
306
307 function reserved_array(token, words) {
308 return token && token.type === TOKEN.RESERVED && in_array(token.text, words);
309 }
310// Unsure of what they mean, but they work. Worth cleaning up in future.
311 var special_words = ['case', 'return', 'do', 'if', 'throw', 'else', 'await', 'break', 'continue', 'async'];
312

Callers 1

beautify.jsFile · 0.85

Calls 1

in_arrayFunction · 0.85

Tested by

no test coverage detected