(va: NestedValueArray, f: (va: Value[]) => void)
| 16 | type NestedValueArray = any; |
| 17 | |
| 18 | function forEachArrayInNestedValueArray(va: NestedValueArray, f: (va: Value[]) => void): void { |
| 19 | if (va.length === 0) { |
| 20 | return; |
| 21 | } |
| 22 | if (Array.isArray(va[0])) { |
| 23 | for (const x of va) { |
| 24 | forEachArrayInNestedValueArray(x, f); |
| 25 | } |
| 26 | } else { |
| 27 | f(va); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | function forEachValueInNestedValueArray(va: NestedValueArray, f: (v: Value) => void): void { |
| 32 | forEachArrayInNestedValueArray(va, a => a.forEach(f)); |
no outgoing calls
no test coverage detected
searching dependent graphs…