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