Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dsq

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsq - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc