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