@roar-firebase-functions/core / chunkOrgs
Function: chunkOrgs()
chunkOrgs(
orgs
,chunkSize
):OrgsList
[]
Defined in: packages/core/src/utils/chunkOrgs.utils.ts:14
Chunks an OrgsList into smaller IOrgsLists of a specified size.
This function is useful when dealing with large amounts of data that need to be processed in smaller chunks. It iterates over the properties of the input OrgsList and divides each property's array into smaller chunks.
Parameters
orgs
The input organization lists.
chunkSize
number
The size of each chunk.
Returns
OrgsList
[]
An array of smaller OrgsLists, each containing a chunk of the original data.