Wrote an NPM package to implement QUEUE data structure in your apps.
It's a tiny package, written in 100% JAVASCRIPT.
While using large arrays, it's always suggested to use Queue to attain O(1) complexity.
GITHUB: https://github.com/sanmak/sumo-queue
NPM: https://nodei.co/npm/sumo-queue/
Share thoughts: https://twitter.com/sanket_dude
Love it. Thanks Sanmak!