Function walk

  • 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: any

          Returns any

    • Optional o: {
          except: string | Function | string[];
          only: string | Function | string[];
      }
      • except: string | Function | string[]

        Ignore walking nodes of these types

      • only: string | Function | string[]

        Only walk nodes of this type

    Returns any

Generated using TypeDoc