little-ds-toolkit
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "little-ds-toolkit", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A small collection of useful data structures", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,9 +26,3 @@ little-ds-toolkit | ||
var heap = new Heap(function (a, b) { | ||
if (a.value < b.value) { | ||
return 1; | ||
} esle if (a.value > b.value) { | ||
return -1; | ||
} else { | ||
return 0; | ||
} | ||
return a.value - b.value; | ||
}); | ||
@@ -100,3 +94,3 @@ ``` | ||
// replace item "A" | ||
heap.removeIndex(itemPos.A, newItem); | ||
heap.replaceIndex(itemPos.A, newItem); | ||
``` | ||
@@ -103,0 +97,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
38873
198