Function find

  • Find a node and return it, or null if not found.

    Parameters

    • node: Node

      the node to start from

    • callback: ((node) => boolean)

      the callback predicate to match

        • (node): boolean
        • Parameters

          • node: Node

          Returns boolean

    Returns any

    the matching node or null if none is found

Generated using TypeDoc