UNPKG

@polgubau/utils

Version:

A collection of utility functions for TypeScript

10 lines (8 loc) 283 B
/** * Chunk an array into smaller arrays of a specified size * @param data - the array to chunk * @param size - the size of each chunk (default 10) * @returns an array of smaller arrays (data[]) */ declare const chunk: <T>(data: T[], size?: number) => T[][]; export { chunk };