UNPKG

feedy

Version:
7 lines (6 loc) 194 B
export const outerHeight = el => { let height = el.offsetHeight; const style = getComputedStyle(el); height += parseInt(style.marginTop) + parseInt(style.marginBottom); return height; }