Comparing version 1.0.0 to 1.0.1
@@ -6,5 +6,7 @@ "use strict"; | ||
let str = ''; | ||
const length = children.length; | ||
const last = length - 1; | ||
for (let i = 0; i < length; i++) { | ||
let last = children.length - 1; | ||
for (; last >= 0; last--) | ||
if (children[last]) | ||
break; | ||
for (let i = 0; i <= last; i++) { | ||
const fn = children[i]; | ||
@@ -11,0 +13,0 @@ if (!fn) |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "High-performance (binary) tree and sorted map implementation (AVL, Splay, Radix, Red-Black)", | ||
@@ -10,0 +10,0 @@ "author": { |
@@ -31,2 +31,3 @@ # `tree-dump` | ||
// ├── line 1 | ||
// │ | ||
// ├── line 2 | ||
@@ -33,0 +34,0 @@ // │ ├── line 2.1 |
5509
52
65