Pure win: Array.from and Array.of

John-David Dalton john.david.dalton at gmail.com
Sun Jul 10 11:26:13 PDT 2011


I dig Array.from, and have manually made sugar for that in my projects.
Array.of is something I have also wanted though I had been struggling
with a name for it.
Until now if I wanted to avoid setting the array length I would do
something like ns.Array.from([23]), but Array.of is nice too ;)

- JDD


More information about the es-discuss mailing list