• Paritions an array into k groups of n items each

    Parameters

    • arr: any

      Array to partition

    • n: number

      size of each parition

    Returns any[][]