code: function hasOverflow(element) {
    const overflowRegex = /(auto|scroll)/;
    const computedStyles = getComputedStyle(element, null);
  
    const overflow =
      computedStyles.getPropertyValue('overflow') +
      computedStyles.getPropertyValue('overflow-y') +
      computedStyles.getPropertyValue('overflow-x');
  
    return overflowRegex.test(overflow);
  }
docs: Returns true if the passed element has overflow
  @param {HTMLElement} element
  @return {Boolean}
  @private