Quantumbraid's picture
download
raw
241 Bytes
/**
* Checks if a given element is currently visible.
*
* @param node the element to check
*/
export default function isVisible(node) {
return node ? !!(node.offsetWidth || node.offsetHeight || node.getClientRects().length) : false;
}

Xet Storage Details

Size:
241 Bytes
·
Xet hash:
b26235186ef11d9da4baf5886e8188c82292caaf738c4c7b7428d9682afe677c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.