Takaro - v0.4.11
    Preparing search index...

    Function flattenDepth

    • Recursively flatten array up to depth times.

      Type Parameters

      • T

      Parameters

      • array: ListOfRecursiveArraysOrValues<T> | null | undefined

        The array to recursively flatten.

      • Optionaldepth: number

      Returns T[]

      Returns the new flattened array.