Open this example in the interactive library
Source code
const entries: readonly (readonly [string, number])[] = [
["api", 2],
["web", 4],
];
console.log([...new Set<number>([2, 3, 2])]);
Sample output
[ 2, 3 ]

Open this example in the interactive library
const entries: readonly (readonly [string, number])[] = [
["api", 2],
["web", 4],
];
console.log([...new Set<number>([2, 3, 2])]);
[ 2, 3 ]