( value: unknown, depth: number, f: (value: unknown) => void )
| 456 | |
| 457 | // a tuple's defaults nest each thunk in an array of pairs |
| 458 | const forEachElement = ( |
| 459 | value: unknown, |
| 460 | depth: number, |
| 461 | f: (value: unknown) => void |
| 462 | ): void => { |
| 463 | if (depth && isArray(value)) |
| 464 | for (const element of value) forEachElement(element, depth - 1, f) |
| 465 | else f(value) |
| 466 | } |
| 467 | |
| 468 | let constantNames: Map<unknown, string> | undefined |
| 469 |
no outgoing calls
no test coverage detected