Skip to content

Commit eda5917

Browse files
authored
docs: recommend the superior removeNode util
1 parent 9bda204 commit eda5917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Notable among the available functions:
8181
- __`getTreeFromFlatData`__: Convert flat data (like that from a database) into nested tree data
8282
- __`getFlatDataFromTree`__: Convert tree data back to flat data
8383
- __`addNodeUnderParent`__: Add a node under the parent node at the given path
84-
- __`removeNodeAtPath`__: Remove the node at the given path
84+
- __`removeNode`__: For a given path, get the node at that path and the treeData with that node removed.
8585
- __`changeNodeAtPath`__: Modify the node object at the given path
8686
- __`map`__: Perform a change on every node in the tree
8787
- __`walk`__: Visit every node in the tree in order

0 commit comments

Comments
 (0)