(obj: T)
| 82 | } |
| 83 | |
| 84 | function compactObject<T extends Record<string, unknown>>(obj: T): T { |
| 85 | for (const key of Object.keys(obj)) { |
| 86 | if (obj[key] === undefined) delete obj[key]; |
| 87 | } |
| 88 | return obj; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Compare two semver-ish strings (X.Y.Z, ignores any pre-release or build |
no outgoing calls
no test coverage detected