Splits array into two parts at index

  • Type Parameters

    • T

    Parameters

    • n: number
    • xs: T[]

    Returns T[][]