const doesAnyElement = ( document , predicate ) : boolean => { return ( [ ... ( document . querySelectorAll ( '*' ) as any ) ] as HTMLElement [ ] ) . some ( predicate ) ; } ; export default doesAnyElement ;