(value: Record<string, unknown>, key: string)
| 238 | } |
| 239 | |
| 240 | function hasOwn(value: Record<string, unknown>, key: string): boolean { |
| 241 | return Object.prototype.hasOwnProperty.call(value, key); |
| 242 | } |
| 243 | |
| 244 | function optionalNumber(value: Record<string, unknown>, key: string): number | null | undefined { |
| 245 | if (!hasOwn(value, key)) return undefined; |
no outgoing calls
no test coverage detected