@clickup/pg-microsharding
Version:
Microshards support for PostgreSQL
7 lines • 351 B
TypeScript
/**
* 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