js convert set to array

64

js convert set to array -

let array = Array.from(mySet);

let array = [...mySet];

let array = []; mySet.forEach(v => array.push(v));

js set to array -

Array.from(my_set.values());

Comments

Submit
0 Comments