checkVisibility

fun checkVisibility(options: CheckVisibilityOptions = definedExternally): Boolean(source)

The checkVisibility() method of the Element interface checks whether the element is visible.

MDN Reference