node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

twoqueue

Twoqueue

API

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

Implementation

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