JS конвертируется, установлена на массив
let array = Array.from(mySet);
let array = [...mySet];
let array = []; mySet.forEach(v => array.push(v));
KostasX
let array = Array.from(mySet);
let array = [...mySet];
let array = []; mySet.forEach(v => array.push(v));
Array.from(my_set.values());