TS Array Chunk


```typeasync asyncChunkRequest<Input, Output>(    inputs: Array<Input>,    method: (inputs: Array<Input>, ...args: unknown[]) => Array<Output>,    args: unknown[] = [],    chunkSize: number = 100  ): Promise<Array<Output>> {    const results: Array<Output> = []    for (const index in Array.from({ length: Math.ceil(inputs.length / chunkSize) })) {      const chunk = inputs.slice(Number(index) * chunkSize, (Number(index) + 1) * chunkSize)      const chunkResult = await method(chunk, ...args)      results.push(...chunkResult)    }    return results  }```








