Recursively execute a callback on this node and all its children.
If the callback returns a non-undefined value, walking ends and the value is returned
Parameters
node: any
callback: ((arg0, arg1) => any)
(arg0, arg1): any
Parameters
arg0: any
arg1: parentPath
Returns any
Optionalo: { except: Function | Function[]; only: Function | Function[]; }
except: Function | Function[]
Ignore nodes that match this
only: Function | Function[]
Only walk nodes that match this
Returns any
the value returned by the callback, or undefined if no value was returned
Recursively execute a callback on this node and all its children. If the callback returns a non-undefined value, walking ends and the value is returned