Function flattenArray

  • Flatten an array

    Example

    flattenArray([[1,2,3],[4,5,6]]) === [1,2,3,4,5,6]
    

    Type Parameters

    • T extends unknown

    Parameters

    • array: T[][]

      Array that should be flattened

    Returns T[]

Generated using TypeDoc