JSFiddle - React, Tailwind, and code Playground JavaScript const N = 10_000 const arr = [...Array(N).keys()] arr.reverse() console.log(arr);