Open this example in the interactive library
Source code
const entries: readonly (readonly [string, number])[] = [
["api", 2],
["web", 4],
];
console.log(new Map(entries).get("jobs") ?? 0);
Sample output
0

Open this example in the interactive library
const entries: readonly (readonly [string, number])[] = [
["api", 2],
["web", 4],
];
console.log(new Map(entries).get("jobs") ?? 0);
0