/**
 * Determines if the passed element is overflowing its bounds, either vertically or horizontally.
 */
const isElementOverflowing = (element: HTMLElement) =>
  element.clientWidth < element.scrollWidth || element.clientHeight < element.scrollHeight;

export default isElementOverflowing;
