Yet another attempt at typed JS data

Bergi a.d.bergi at
Mon Feb 10 19:27:05 UTC 2020


> Unfortunately, `Array.from({ length: 4 }, () => whatever)` produces a holey
> array

Does it? But really, if the performance difference betweeen HOLEY and
PACKED arrays were large enough to be relevant[1], the engine
programmers would certainly already have optimised all those trivial
cases where an array is filled gradually to produce the more efficient

kind regards,

[1]: it probably isn't:

More information about the es-discuss mailing list