3 ms·
It isn't correct in JS. Arrays aren't aren't guaranteed to be dense, and even if they are, the nature of JS means that they're usually holding references. (Co
by carussell 15y ago
It isn't correct in JS. Arrays aren't aren't guaranteed to be dense, and even if they are, the nature of JS means that they're usually holding references. (Compared to say, a contiguous block of some multiple of sizeof(<some struct>) bytes.)