Properties
stack
stack: any[]
Methods
call
- call<U>(callback: (path: this) => U, ...names: PropertyKey[]): U
-
Type parameters
Parameters
-
callback: (path: this) => U
-
Returns U
each
- each(callback: (path: this) => void, ...names: PropertyKey[]): void
-
Parameters
-
callback: (path: this) => void
-
Returns void
getName
-
getNode
- getNode(count?: undefined | number): null | T
-
Parameters
-
Optional count: undefined | number
Returns null | T
getParentNode
- getParentNode(count?: undefined | number): null | T
-
Parameters
-
Optional count: undefined | number
Returns null | T
getValue
-
Returns T
map
- map<U>(callback: (path: this, index: number) => U, ...names: PropertyKey[]): U[]
-
Type parameters
Parameters
-
callback: (path: this, index: number) => U
-
- (path: this, index: number): U
-
Returns U[]