(u: any)
| 12 | } |
| 13 | |
| 14 | function isArray(u: any): u is (ScalarValueArray | JSObject[]) { |
| 15 | return u !== null && u !== undefined && Array.isArray(u) && u.length > 0; |
| 16 | } |
| 17 | |
| 18 | export function recursiveDescend(startNode: GeneralValue, selector: (node: GeneralValue) => GeneralValue | undefined, collector: GeneralValue[] = []) { |
| 19 | // special treatment if it is an array |
nothing calls this directly
no outgoing calls
no test coverage detected