( obj: T | undefined, key: K, )
| 99 | }; |
| 100 | |
| 101 | function hasOwnProperty<T extends object, K extends PropertyKey>( |
| 102 | obj: T | undefined, |
| 103 | key: K, |
| 104 | ): obj is T & Record<K, unknown> { |
| 105 | if (!obj) return false; |
| 106 | return Object.prototype.hasOwnProperty.call(obj, key); |
| 107 | } |
| 108 | |
| 109 | function parseBoolean(value: string | undefined): boolean | undefined { |
| 110 | if (!value) return undefined; |
no outgoing calls
no test coverage detected