src/helpers.js
function getStyle(el, styleProp) {
  if (typeof window === 'undefined') {
    return;
  }

  var style;
  if (el.currentStyle) {
    style = el.currentStyle[styleProp];
  } else if (window.getComputedStyle) {
    style = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
  }
  if (style && style.length === 0) {
    style = null;
  }
  return style;
}
function getStyle(el, styleProp) {
  if (typeof window === 'undefined') {
    return;
  }

  var style;
  if (el.currentStyle) {
    style = el.currentStyle[styleProp];
  } else if (window.getComputedStyle) {
    style = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
  }
  if (style && style.length === 0) {
    style = null;
  }
  return style;
}
function getStyle ( el , styleProp ) { if ( typeof window === 'undefined' ) { return ; } var style ; if ( el . currentStyle ) { style = el . currentStyle [ styleProp ] ; } else if ( window . getComputedStyle ) { style = document . defaultView . getComputedStyle ( el , null ) . getPropertyValue ( styleProp ) ; } if ( style && style . length === 0 ) { style = null ; } return style ; }
Gets a CSS style property.

@param {Object} el A DOM element
@param {String} styleProp The name of a style property
@returns {Object} The style value
Gets a CSS style property .