Comparing version 1.0.1 to 1.0.2
@@ -42,2 +42,3 @@ const Node = require('./Node'); | ||
} | ||
return this._head; | ||
} | ||
@@ -63,2 +64,3 @@ | ||
} | ||
return this._tail; | ||
} | ||
@@ -245,4 +247,4 @@ | ||
*/ | ||
has(item) { | ||
return !!this.getByItem(item); | ||
has(node) { | ||
return !!this.getByItem(node); | ||
} | ||
@@ -311,2 +313,5 @@ | ||
DoublyLinkedList.DoublyLinkedList = DoublyLinkedList; | ||
DoublyLinkedList.Node = Node; | ||
module.exports = DoublyLinkedList; |
{ | ||
"name": "dl-list", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
9492
346