(container: any)
| 155 | |
| 156 | // A container can be inlined when none of its values are themselves a non-empty object or array |
| 157 | function canInline(container: any): boolean { |
| 158 | const values = Array.isArray(container) ? container : Object.values(container); |
| 159 | return values.every((value) => ( |
| 160 | value === undefined || value === null || typeof value !== 'object' || Object.keys(value).length === 0 |
| 161 | )); |
| 162 | } |
no outgoing calls
no test coverage detected