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