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

dequeue

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dequeue - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

10

lib/dequeue.js

@@ -35,2 +35,12 @@

Dequeue.prototype.last = function(){
if (this.head.prev === this.head) return
return this.head.prev.data
}
Dequeue.prototype.first = function(){
if (this.head.next === this.head) return
return this.head.next.data
}
Dequeue.prototype.empty = function(){

@@ -37,0 +47,0 @@ if (this.length === 0 ) return

2

package.json
{
"name" : "dequeue"
, "main" : "./lib/index.js"
, "version" : "1.0.4"
, "version" : "1.0.5"
, "description" : "A simple double ended queue datastructure"

@@ -6,0 +6,0 @@ , "keywords" : ["datastructure", "queue", "double ended queue", "fifo", "FIFO", "linked list"]

@@ -55,2 +55,8 @@ A Simple Double Ended Queue Datastructure

### `value = deque.last()`
Examine the value of the end without removing it.
### `value = deque.first()`
Examine the value of the beginning without removing it.
### `deque.empty()`

@@ -57,0 +63,0 @@ Remove all entries. This is NOT a test for an empty dequeue; use `deque.length`

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