twoqueue

Two-array implementation of a queue

npm install twoqueue
35 downloads in the last week
437 downloads in the last month

Twoqueue

API

Queue with enqueue(), dequeue(), and dequeueMultiple().

Implementation

Two arrays used as stacks. I tested this to be the fastest implementation on V8.

npm loves you