twoqueue

Two-array implementation of a queue

npm install twoqueue
7 downloads in the last day
34 downloads in the last week
376 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