• Polyfill for array.flat

    Type Parameters

    • T

    Parameters

    • array: T[]

      Array to flatten

    • depth: number = 1

      Depth to flat to

    Returns T