Greetings to all! I am a TypeScript newcomer and it seems like there is something that I'm missing. Here's my query:
const someSet = new Set();
someSet.add(1)
console.log(someSet[0])
When I run this, it returns undefined. Can someone please clarify why we can't access values by index in a Set? And how could I achieve that if needed?