DEV Community

Discussion on: Is this element visible?

Collapse
 
asmani2022 profile image
Asmani2022

Element prototype isVisible = function { return !!( this.offsetWidth || offsetHeight || getClientRects().length (length); };