@unikue/ts-lang-utils
    Preparing search index...

    Function forEach

    Utilities for tree

    David Hsing

    • Traverses the target nodes with the given callback function

      Type Parameters

      • T

      Parameters

      • Optionalnodes: T[]

        The nodes to traverse

      • Optionalcallback: (node: T, nodes?: T[]) => void

        The function to execute during traversing

      • childrenKey: string = 'children'

        The property name to children node

      Returns void

      David Hsing