How can I convert a Set to an Array in TypeScript
You also can do
Array.from(my_set.values());
Fix
- Use tsconfig.json with
"lib": ["es6"]
More
- Google
lib
option. - I wrote some docs too : https://basarat.gitbooks.io/typescript/content/docs/types/lib.d.ts.html#lib-option