You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -109,13 +109,15 @@ Stringifies node and array of nodes.
109
109
110
110
### valueParser.walk(nodes, cb[, bubble])
111
111
112
-
Walks each node and recursively each nodes of functions.
113
-
If bubble is `false` and callback returns `false` on function node then deeper walking will be prevented.
112
+
Walks each provided node, recursively for each node in a function.
113
+
114
+
Returning `false` in the callback will prevent traversal of deeper, nested nodes(inside a function). You can use this to walk over only the immediate children. *note: This only applies if `bubble` is `false`(default).*
115
+
114
116
Returns `this` instance.
115
117
116
-
-`nodes` - value-parser node or nodes
117
-
-`cb(node, index, nodes)`
118
-
-`bubble` walk since the deepest functions nodes
118
+
-`nodes`: `value-parser` node or nodes
119
+
-`cb(node, index, nodes)`: function - Function to execute for each node
120
+
-`bubble`: boolean - Walk from the deepest nodes upwards
0 commit comments