param element returns see https export default function isElementOverflowed ( element ) { return ( ( element && element . scrollHeight > element . clientHeight ) || ( element && element . scrollWidth > element . clientWidth ) ) ; }