Function chunk

  • Break object into chunks of given size.

    Parameters

    • x: object

      an object

    • n: number = 1

      chunk size [1]

    • s: number = n

      chunk step [n]

    Returns object[]

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

Generated using TypeDoc