mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
192 B
JavaScript
13 lines
192 B
JavaScript
function findValue(values, x, start, end) {
|
|
let i;
|
|
for (i = start; i < end; ++i) {
|
|
if (values[i] === x) {
|
|
return i;
|
|
}
|
|
}
|
|
if (i < end) {
|
|
return i;
|
|
}
|
|
return -1;
|
|
}
|