dsq
v1.0.1
Published
Simple Queue Data Structure
Downloads
1
Readme
DS Queue
A simple queue implementation. Used by QUnit Migrate
Install
npm install --save dsq
Usage
var Queue = require('dsq');
var queue = new Queue();
queue.enqueue([1, 2, 3]); // [1, 2, 3]
queue.enqueue(4); // [1, 2, 3, 4]
var top = queue.top(); // top == 1;
var first = queue.dequeue(); // first == 1, [2, 3, 4]
var dump = queue.dump(); // [2, 3, 4]
License
MIT © Amanpreet Singh