performant-array-to-tree
Advanced tools
Comparing version 1.9.0 to 1.9.1
export interface Item { | ||
id?: string | number; | ||
parentId?: string | number | null; | ||
[key: string]: any; | ||
} | ||
export interface TreeItem { | ||
id?: string | number; | ||
parentId?: string | number | null; | ||
[key: string]: Item | TreeItem[] | any; | ||
@@ -10,0 +6,0 @@ } |
{ | ||
"name": "performant-array-to-tree", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
58891
592