(x: any[])
| 175 | |
| 176 | // tslint:disable-next-line:no-any |
| 177 | export function zipToList(x: any[]): DeepMapResult { |
| 178 | if (x === null) { |
| 179 | return null; |
| 180 | } |
| 181 | // TODO(soergel): validate array type? |
| 182 | |
| 183 | if (isIterable(x[0])) { |
| 184 | return {value: null, recurse: true}; |
| 185 | } else { |
| 186 | return {value: x, recurse: false}; |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * A return value for an async map function for use with deepMapAndAwaitAll. |
nothing calls this directly
no test coverage detected
searching dependent graphs…