mirror of
https://github.com/github/codeql.git
synced 2026-03-07 16:16:47 +01:00
6 lines
124 B
JavaScript
6 lines
124 B
JavaScript
function contains(a, elt) {
|
|
for (let i = 0; i <= a.length; ++i)
|
|
if (a[i] === elt)
|
|
return true;
|
|
return false;
|
|
} |