How to convert Set to Array? gives three answers for converting a set into an array, none of which currently work in the Chrome browser.
Let's say I have a simple Set
var set_var = new Set(['a', 'b', 'c']);
I can iterate through my variable and add elements to an empty array
var array_var = []; set_var.forEach(function(element){array_var.push(element)});
But are there other ways to do this with broader browser support?
javascript google-chrome
Cecilia
source share