A very easy way is to turn the Set into an Array first:
let a = new Set();
a.add('Hello');
a = Array.from(a);
…and then just use a simple for loop.
Be aware that Array.from
is not supported in IE11.
A very easy way is to turn the Set into an Array first:
let a = new Set();
a.add('Hello');
a = Array.from(a);
…and then just use a simple for loop.
Be aware that Array.from
is not supported in IE11.