mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
7 lines
138 B
JavaScript
7 lines
138 B
JavaScript
function sum(xs, i) {
|
|
var res = 0;
|
|
for(;i++<xs.length;) // OK - flagged by js/unused-index-variable
|
|
res += xs[0];
|
|
return res;
|
|
}
|