Skip to main content
Up or down tonavigateEnter toselectEscape toclose⌘⇧KAI

method Deno.lint.SourceCode.getAncestors

#SourceCode.getAncestors(node: Node): Node[]

Returns array of ancestors of the current node, excluding the current node.

Parameters #

#node: Node

Return Type #

Node[]