nodejs-linked-list
Advanced tools
Comparing version 0.1.0 to 0.1.1
14
index.js
@@ -84,3 +84,3 @@ 'use strict'; | ||
this.length++; | ||
this.length += 1; | ||
@@ -108,3 +108,3 @@ return newItem; | ||
this.length--; | ||
this.length -= 1; | ||
@@ -151,2 +151,7 @@ return true; | ||
function drainer(array, countObj, content) { | ||
array[countObj.count] = content; | ||
countObj.count += 1; | ||
} | ||
List.prototype.drain = function () { | ||
@@ -213,7 +218,2 @@ var result = [], | ||
function drainer(array, countObj, content) { | ||
array[countObj.count] = content; | ||
countObj.count++; | ||
} | ||
module.exports = List; |
@@ -5,3 +5,3 @@ { | ||
"authors": "Dexter Nguyen", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "index.js", | ||
@@ -21,2 +21,2 @@ "repository": { | ||
] | ||
} | ||
} |
4747