How do you iterate over a set in TypeScript? for..of does not work:
\'Set\' is not an array type or a string type
.for
This worked for me:
this.mySet.forEach((value: string, key: string) => { console.log(key); console.log(value); });
I found it here: Other Stack Overflow question