Every line of 'javascript code list' 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.
583 function getCodeForList(list, key) { 584 for(var i = 0; i < list.length; i++) { 585 if(list[i][0] == key) { 586 return list[i][1]; 587 } 588 } 589 return list[0][1]; // Default to 1st item of the list (Should never be triggered) 590 };