Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(value => {
jsTokens.lastIndex = 0;
return matchToToken(jsTokens.exec(value));
})
.map(token => {
var tokens = code.match(jsTokens).map(function (value) {
jsTokens.lastIndex = 0;
return matchToToken(jsTokens.exec(value));
}).map(function (token) {
if (token.type === 'name' && isKeyword(token.value)) {