How to use 'ignore line' in JavaScript

Every line of 'ignore line' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
33function _ignoreTag(tag) {
34 var token = cm.getTokenAt(pos(tag.line, tag.index + tag.matches[1].length));
35 //ignore brraces in comments and strings
36 if (!token.type || (token.type === "comment" && (tag.matches[1] === "/*" || tag.matches[1] === "*/"))) {
37 return false;
38 }
39 return true;
40}

Related snippets