(value: unknown)
| 180 | } |
| 181 | |
| 182 | function stripVirtualPropsDeep(value: unknown): any { |
| 183 | if (Array.isArray(value)) { |
| 184 | return value.map((entry) => stripVirtualPropsDeep(entry)) |
| 185 | } |
| 186 | if (value && typeof value === `object`) { |
| 187 | const out: Record<string, unknown> = {} |
| 188 | const stripped = stripVirtualProps(value as Record<string, unknown>) |
| 189 | for (const [key, entry] of Object.entries(stripped)) { |
| 190 | out[key] = stripVirtualPropsDeep(entry) |
| 191 | } |
| 192 | return out |
| 193 | } |
| 194 | return value |
| 195 | } |
| 196 | |
| 197 | function childRows(collection: { |
| 198 | toArray: ReadonlyArray<unknown> |
no test coverage detected