• Slice an iterable into chunks of the specified size

    Type Parameters

    • T

    Parameters

    • itr: Iterable<T>

      iterator to slice

    • size: number

    Returns Iterable<T[]>