(input: unknown)
| 241 | } |
| 242 | |
| 243 | function isPojo(input: unknown): input is Record<string, unknown> { |
| 244 | // Plain objects have Object as constructor or no constructor |
| 245 | const constructor = (input as object).constructor; |
| 246 | return constructor === Object || constructor === undefined; |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * Ensure that something is an object. |
no outgoing calls
no test coverage detected