(value: any)
| 62 | */ |
| 63 | |
| 64 | export const isDOMSelection = (value: any): value is DOMSelection => { |
| 65 | const window = value && value.anchorNode && getDefaultView(value.anchorNode) |
| 66 | return !!window && value instanceof window.Selection |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Check if a DOM node is an element node. |
no test coverage detected
searching dependent graphs…