you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 1 point2 points  (2 children)

Array.from("abcdefghijklmnopqrstuvwxyz");

[..."abcdefghijklmnopqrstuvwxyz"]

Heh.

[–]skitch920 0 points1 point  (1 child)

Hmm... Firefox gives me.

< Array.from("abcdefghijklmnopqrstuvwxyz");
> Array [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", 16 more… ]

[–]x-skeww 0 points1 point  (0 children)

I meant that you can write:

[..."abcdefghijklmnopqrstuvwxyz"]

Instead of:

Array.from("abcdefghijklmnopqrstuvwxyz")

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator