UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

7 lines (6 loc) 270 B
/** * Creates an array of elements split into groups the length of size. * If array can't be split evenly, the final chunk will be the remaining elements. * Drop-in replacement for lodash/chunk. */ export default function chunk<T>(array: T[], size?: number): T[][];