From Dev.to
Packed vs Holey Arrays in V8: Why new Array(n) Makes Spread 4x Slower
Two arrays. Same million numbers, in the same order, with no gaps in either: const a = []; for (let i = 0; i r.id); push, map, filter and Array.from({ length: n }, fn) all give packed arrays. Three...
