(input: (T | any[])[], fn: (value: T) => void)
| 40 | } |
| 41 | |
| 42 | export function deepForEach<T>(input: (T | any[])[], fn: (value: T) => void): void { |
| 43 | input.forEach((value) => (Array.isArray(value) ? deepForEach(value, fn) : fn(value))); |
| 44 | } |
| 45 | |
| 46 | export function addToArray(arr: any[], index: number, value: any): void { |
| 47 | // perf: array.push is faster than array.splice! |
no test coverage detected
searching dependent graphs…