loading...

Discussion

pic
Editor guide
 

or like this

function range(startAt, endAt) {
  const size = endAt - startAt + 1
  return Array(size).fill(startAt).map((a, b) => a + b);
}