(value: unknown)
| 33 | * property. |
| 34 | */ |
| 35 | export function isNode(value: unknown): value is Node { |
| 36 | return ( |
| 37 | value !== null && |
| 38 | typeof value === 'object' && |
| 39 | 'nodeType' in value && |
| 40 | typeof value.nodeType === 'number' |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Type guard that checks if a value is a Window. Uses window self reference checks to |
no outgoing calls
no test coverage detected