(value: T)
| 3077 | } |
| 3078 | |
| 3079 | function omitUndefined<T extends JsonRecord>(value: T): T { |
| 3080 | return Object.fromEntries( |
| 3081 | Object.entries(value).filter(([, entry]) => entry !== undefined), |
| 3082 | ) as T; |
| 3083 | } |
| 3084 | |
| 3085 | function cloneJson<T>(value: T): T { |
| 3086 | return JSON.parse(JSON.stringify(value)) as T; |
no outgoing calls
no test coverage detected