File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ filtering nodes. Optionally in reverse.
4646
4747###### Parameters
4848
49- * ` node ` ([ ` Node ` ] [ node ] )
50- — Node to search
49+ * ` tree ` ([ ` Node ` ] [ node ] )
50+ — Tree to traverse
5151* ` test ` ([ ` Test ` ] [ is ] , optional)
52- — Node type or other [ ` is ` ] [ is ] -compatible test
52+ — [ ` is ` ] [ is ] -compatible test (such as a node type)
5353* ` visitor ` ([ Function] [ visitor ] )
54- — Visitor invoked when a node is found that passes ` test `
54+ — Function invoked when a node is found that passes ` test `
5555* ` reverse ` (` boolean ` , default: ` false ` )
5656 — When falsey, checking starts at the first child and continues
5757 through to later children. When truthy, this is reversed.
@@ -67,7 +67,7 @@ removing [**children**][child] before `index`, you should return a new `index`
6767(` number ` ) from ` visitor ` to specify the next sibling to visit. Replacing
6868` node ` itself still causes its descendants to be visited. Adding or removing
6969nodes after ` index ` is handled as expected without needing to return a new
70- ` index ` . Remove the ` children ` property on ` parent ` still results in them
70+ ` index ` . Removing the ` children ` property on ` parent ` still results in them
7171being traversed.
7272
7373###### Parameters
You can’t perform that action at this time.
0 commit comments