The Array.from() method returns a new Array from an array-like object or iterable objects such as Map, Set:
You can spread the Set out in an Array like this:
Here is the old fashion way, iterating and pushing to a new Array:
An Array is a structure which represents the block of data (numbers, objects, etc.) allocated in consecutive memory. Set is an abstract data type which contains distinct elements without the need of being allocated orderly by index. Elements in Array can be duplicated, and in Set, the elements can’t.