DEV Community

Discussion on: Convert Iterable to Array using Spread

Collapse
 
mateiadrielrafael profile image
Matei Adriel • Edited

Cant wait to be able to do

const set = new Set([1, 2, 3])
const array = set |> Array.from
Collapse
 
samanthaming profile image
Samantha Ming

That’s new syntax for me🤩...what language is that based from? 😮

Collapse
 
mateiadrielrafael profile image
Matei Adriel

Probably haskell or some other functional lamg