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: Function | Function[];
          only: Function | Function[];
      }
      • except: Function | Function[]

        Ignore nodes that match this

      • only: Function | Function[]

        Only walk nodes that match this

    Returns any

Generated using TypeDoc