Well, I wasn't sure about the inner workings of arrays, but still I believe that using an object here is better than an array. Why would you need to create an instance of an array when you're not planning to use any of the extra functionality it offers (such as length, push, pop, slice,...)? Still, I think it's an overkill, but perhaps that's just my opinion.