Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "dsq", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple Queue Data Structure", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,6 +15,7 @@ # DS Queue [![Build Status](https://travis-ci.org/apsdehal/ds-queue.svg?branch=master)](https://travis-ci.org/apsdehal/ds-queue) | ||
queue.enqueue([1, 2, 3]); // [3, 2, 1] | ||
queue.enqueue(4); // [4, 3, 2, 1] | ||
var top = queue.top(); // top == 4; | ||
var first = queue.dequeue(); // first == 1, [4, 3, 2] | ||
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] | ||
``` | ||
@@ -21,0 +22,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5717
24