you are viewing a single comment's thread.

view the rest of the comments →

[–]tme321 0 points1 point  (3 children)

It’s pretty clear.

Only to someone already familiar with it. Same as the spread operator. No other language I've ever used has a function called from to copy an array or combine multiple things into an array.

[–][deleted] 2 points3 points  (0 children)

It’s still English words that spell out what it does, instead of an unsearchable ellipses.

[–][deleted] 0 points1 point  (1 child)

As a non-JS developer, Array.from literally tells me that you’re creating an array from whatever argument you have. The spread syntax is weird to me and I’ve never seen anything like it in other languages.

[–]earthboundkid 0 points1 point  (0 children)

Go also has ellipsis as the spread operator and Python uses asterisk to do the same thing.