Function flatten

  • Flatten the array

    Parameters

    • xs: unknown[]

      The array to flatten

    • depth: number = 1

      The number of nested lists to iterate.

    Returns Any[]

    1