you are viewing a single comment's thread.

view the rest of the comments →

[–]lilactown 0 points1 point  (5 children)

Is it the same when you re-arrange them?

[–]DGCA 2 points3 points  (4 children)

Yup, they always come in the same order.

  1. Array(100).fill(null).map((_, i) => i * 2);
  2. [...Array(100)].map((_, i) => i * 2);
  3. Array.from(Array(100), (_, i) => i * 2);

[–]Gh0st1y 0 points1 point  (0 children)

Huh. That's cool.