A queue (FIFO) implementation written in TypeScript.
Install from NPM with
$ npm install --save @jsdsl/queue
It's a queue! Enqueue and dequeue, that's kinda the whole bit.
import { Queue } from "@jsdsl/queue";
let queue: Queue<number> = new Queue(1, 2);
queue.enqueue(3, 4);
queue.enqueue(5);
while (!queue.isEmpty()) console.log(queue.dequeue()) //=> 1, 2, 3, 4, 5
@jsdsl/queue is made available under the GNU General Public License v3.
Copyright (C) 2021 Trevor Sears