Function recursiveForEach

  • Function, that will iterate over an object. It will call the callback on every element.

    Author

    M.Karkowski

    Export

    Returns

    {*}

    Parameters

    • obj: any

      The Object to iterate

    • Optional prefix: string = ""

      A prefix for the Path.

    • dataCallback: ((path, data, parent?, level?) => void)

      Callback, that will be called.

        • (path, data, parent?, level?): void
        • Parameters

          • path: string
          • data: any
          • Optional parent: string
          • Optional level: number

          Returns void

    • Optional _SPLITCHAR: string = SPLITCHAR

      The Splitchar to use, to generate the path

    • Optional _callOnlyOnValues: boolean = true

      A Flag, to start the

    • Optional _maxDepth: number = Infinity

      Determine the max Depth, after which the Iteration will be stopped.

    • Optional _parent: string = ""

      For Recursive call only

    • Optional _level: number = 0

      For Recursive call only

    Returns any

Generated using TypeDoc