/**
* Determines if element is visible, similar to the jQuery :visible selector.
*
* @module utils/dom/isVisible
* @param {element} elem - DOM element to test visibility
* @return {bool} - True or False depending on whether or not the element is visible
*/
const isVisible = elem => elem.offsetWidth > 0
&& elem.offsetHeight > 0
&& 'none' !== getComputedStyle( elem ).getPropertyValue( 'display' );
export default isVisible;