3 ms·
JS objects are tables, with Arrays being a syntactic convenience with some extra properties. JS engines do heavily optimize for the array case with dense layout
by nsm 9y ago
JS objects are tables, with Arrays being a syntactic convenience with some extra properties. JS engines do heavily optimize for the array case with dense layout.
https://docs.microsoft.com/en-us/scripting/javascript/objects-and-arrays-javascript https://docs.microsoft.com/en-us/scripting/javascript/object...
Calling it novel to JS is a stretch. Lua does this too and I’m sure there are other languages.
- fiddlerwoaroof 9y agophp does too