function outerHeight(element) {
  let height = element.offsetHeight;
  const style = getComputedStyle(element);
  height += parseInt(style.marginTop, 10) + parseInt(style.marginBottom, 10);

  return height;
}
/**
 * Get the current computed height for the given element including margin,
 * padding and border.
 * Equivalent to jQuery's `$(el).outerHeight(true)`.
 * @param {!HTMLElement} element Element.
 * @return {number} The height.
 */
Get the current computed height for the given element including margin,
padding and border.
Get the current computed height for the given element including margin padding and border .
function outerHeight(element) {
  let height = element.offsetHeight;
  const style = getComputedStyle(element);
  height += parseInt(style.marginTop, 10) + parseInt(style.marginBottom, 10);
  return height;
}
function outerHeight ( element ) { let height = element . offsetHeight ; const style = getComputedStyle ( element ) ; height += parseInt ( style . marginTop , 10 ) + parseInt ( style . marginBottom , 10 ) ; return height ; }
Get the current computed height for the given element including margin,
 padding and border.
Get the current computed height for the given element including margin padding and border .