Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ObjectTraverser

Index

Methods

Methods

Static visit

  • visit(tree: any, callback: function): void
  • Visits every node in a tree, using a depth first search, and calls a callback function for that node.

    Parameters

    • tree: any
    • callback: function
        • (value: any, context: object): boolean
        • Parameters

          • value: any
          • context: object
            • parent: any
            • propertyName: any

          Returns boolean

    Returns void