little-ds-toolkit
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -105,2 +105,5 @@ | ||
var root = this.data[0]; | ||
this.onMove(this.data[0], undefined, 0); | ||
var last = this.data.pop(); | ||
@@ -159,2 +162,4 @@ | ||
this.onMove(this.data[i], undefined, i); | ||
if (i === this.data.length - 1) { | ||
@@ -179,2 +184,4 @@ last = this.data.pop(); | ||
if (i === -1) return; | ||
this.onMove(this.data[i], undefined, i); | ||
this.data.push(value); | ||
@@ -181,0 +188,0 @@ |
{ | ||
"name": "little-ds-toolkit", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A small collection of useful data structures", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -240,3 +240,3 @@ var assert = require('chai').assert; | ||
assert.deepEqual(h.data, [1, 2, 3, 4]); | ||
assert.deepEqual(positions, {0: 0, 1: 0, 2: 1, 3: 2, 4: 3}); | ||
assert.deepEqual(positions, {0: undefined, 1: 0, 2: 1, 3: 2, 4: 3}); | ||
}); | ||
@@ -243,0 +243,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
39014
967