Every line of 'for x in y javascript' 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.
35 function func(x, y) { 36 while(true) { 37 switch (y[0]) { 38 case "bar": 39 x = 'xxx'; 40 break; 41 } 42 } 43 return x; 44 }