3 ms·
Just to nitpick a bit, JS does have primitive arrays using TypedArray.
by Klathmon 9y ago
Just to nitpick a bit, JS does have primitive arrays using TypedArray.
- rubber_duck 9y agoThis is a good point - it's also why you can still optimize JS on microbenchmarks but for real world code where you'd want to use an array of structs in say C# for eg. there's just no JS equivalent other than write obfuscated stuff around typed arrays.