Function chunk

  • Break lists into chunks of given size.

    Returns

    [x[0..n], x[s..s+n], x[2s..2s+n], ...]

    Type Parameters

    • K

    • V

    Parameters

    • x: Lists<K, V>

      lists

    • n: number = 1

      chunk size [1]

    • s: number = n

      chunk step [n]

    Returns Lists<K, V>[]

Generated using TypeDoc