Function closest

  • Walk up the parent chain until a node is found that matches the callback.

    Parameters

    • node: Node

      the node to start from

    • callback: any

      the callback to match

    Returns Node

    the matching node or null if none is found

Generated using TypeDoc