tree-flatter
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "tree-flatter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Transforms a nested tree structure into a flat list, each item has it's children reference and parent reference.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,2 @@ # tree-flatter | ||
## Installation | ||
@@ -87,7 +86,6 @@ | ||
const options = { | ||
initNode: node => node[0], // <= default, consider node => _.clone(node) to avoid mutating the tree | ||
}; | ||
const list = treeFlatter(tree, 'children', options);ÏÏÏÏÏ | ||
const list = treeFlatter(tree, , { | ||
idKey: 'objectID', | ||
itemsKey: 'layers', | ||
); | ||
``` | ||
@@ -94,0 +92,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
17026
129