@flatten-js/interval-tree
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -323,2 +323,9 @@ 'use strict'; | ||
/** | ||
* Clear tree | ||
*/ | ||
clear() { | ||
this.root = null; | ||
} | ||
/** | ||
* Insert new item into interval tree | ||
@@ -325,0 +332,0 @@ * @param {Interval} key - interval object or array of two numbers [low, high] |
@@ -319,2 +319,9 @@ /** | ||
/** | ||
* Clear tree | ||
*/ | ||
clear() { | ||
this.root = null; | ||
} | ||
/** | ||
* Insert new item into interval tree | ||
@@ -321,0 +328,0 @@ * @param {Interval} key - interval object or array of two numbers [low, high] |
@@ -325,2 +325,9 @@ (function (global, factory) { | ||
/** | ||
* Clear tree | ||
*/ | ||
clear() { | ||
this.root = null; | ||
} | ||
/** | ||
* Insert new item into interval tree | ||
@@ -327,0 +334,0 @@ * @param {Interval} key - interval object or array of two numbers [low, high] |
@@ -75,2 +75,3 @@ // Type definitions for flatten-interval-tree library | ||
isEmpty(): boolean; | ||
clean(): void; | ||
insert(key: Interval | NumericTuple, value?: Value<T>) : Node<T>; | ||
@@ -77,0 +78,0 @@ exist(key: Interval | NumericTuple, value?: Value<T>): boolean; |
{ | ||
"name": "@flatten-js/interval-tree", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "Interval search tree", | ||
@@ -5,0 +5,0 @@ "author": "Alex Bol", |
@@ -168,2 +168,8 @@ # Interval Tree | ||
### Clear() | ||
Clear tree | ||
```javascript | ||
tree.clear() | ||
``` | ||
## Documentation | ||
@@ -170,0 +176,0 @@ Documentation may be found here: [https://alexbol99.github.io/flatten-interval-tree](https://alexbol99.github.io/flatten-interval-tree/) |
@@ -80,2 +80,9 @@ /** | ||
/** | ||
* Clear tree | ||
*/ | ||
clear() { | ||
this.root = null | ||
} | ||
/** | ||
* Insert new item into interval tree | ||
@@ -82,0 +89,0 @@ * @param {Interval} key - interval object or array of two numbers [low, high] |
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
148295
3133
192