• Recursively flattens a nested array.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | ListOfRecursiveArraysOrValues<T>

      The array to recursively flatten.

    Returns Flat<T>[]

    Returns the new flattened array.