Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utilities/findInReactTree

Index

Functions

Functions

  • default(tree: object, filter: (node: any) => any, options?: { ignore?: string[]; maxProperties?: number; walkable?: string[] }): any
  • name

    findInReactTree

    description

    Traverses through a react tree

    Parameters

    • tree: object

      The tree to search through

    • filter: (node: any) => any

      The filter to run on the tree passed as the first argument

        • (node: any): any
        • Parameters

          • node: any

          Returns any

    • Optional options: { ignore?: string[]; maxProperties?: number; walkable?: string[] }

      Options to pass to findInTree

      • Optional ignore?: string[]
      • Optional maxProperties?: number
      • Optional walkable?: string[]

    Returns any

    Returns null if nothing is filtered or the value that is filtered.

Generated using TypeDoc