node package manager
Easy collaboration. Discover, share, and reuse code in 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.