UNPKG

@clickup/pg-microsharding

Version:
7 lines 351 B
/** * Splits an array evenly across N resulting chunks. The size of each chunk will * be approximately arr.length / n (in case of imbalance, some chunks will be +1 * larger and some smaller). Also, returns non-empty chunks only. */ export declare function chunkIntoN<T>(arr: T[], numChunks: number): T[][]; //# sourceMappingURL=chunkIntoN.d.ts.map