(ls: T[], chunkSize: number)
| 5 | import { Stack } from "../throttler/stack"; |
| 6 | |
| 7 | function 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 | |
| 15 | const INITIAL_DELETE_BATCH_SIZE = 25; |
| 16 | const INITIAL_LIST_NUM_SUB_PATH = 100; |
no outgoing calls
no test coverage detected
searching dependent graphs…