Number Range In Javascript With Es2015

[...Array(6).keys()];
// [0, 1, 2, 3, 4, 5]
 
Array.from({ length: 6 }).map((_, i) => i);
// [0, 1, 2, 3, 4, 5]
 
Array(6)
  .fill()
  .map((_, i) => i);
// [0, 1, 2, 3, 4, 5]