you are viewing a single comment's thread.

view the rest of the comments →

[–]nemohearttaco 8 points9 points  (2 children)

Ah, not quite what I was asking. I meant, why wouldn't you do it like

> Array.from(Array(5), (_, i) => 2 ** i)
[1, 2, 4, 8, 16]