Time for the empirical test
Its so great!
Lets find out under the hood what type of data structure is being used with
const a = []
.
Before we start, any guesses?
AND IT IS....
ArrayList!
I am positive there is a great reason its not one of these double ended ring buffers, I just don't know it :)