MCPcopy Create free account
hub / github.com/firebase/firebase-tools / chunkList

Function chunkList

src/database/remove.ts:7–13  ·  view source on GitHub ↗
(ls: T[], chunkSize: number)

Source from the content-addressed store, hash-verified

5import { Stack } from "../throttler/stack";
6
7function chunkList<T>(ls: T[], chunkSize: number): T[][] {
8 const chunks = [];
9 for (let i = 0; i < ls.length; i += chunkSize) {
10 chunks.push(ls.slice(i, i + chunkSize));
11 }
12 return chunks;
13}
14
15const INITIAL_DELETE_BATCH_SIZE = 25;
16const INITIAL_LIST_NUM_SUB_PATH = 100;

Callers 1

deletePathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…