mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
10 lines
214 B
TypeScript
10 lines
214 B
TypeScript
function getValue(items, needle) {
|
|
for (const [key, value] of items) {
|
|
if (key.equals(needle)) {
|
|
return value.get();
|
|
}
|
|
}
|
|
const value = "dfg"; // should not affect scoping above
|
|
return null;
|
|
}
|