UNPKG

twitchtvapp-nicer00ster

Version:

twitchtv show active users

16 lines (15 loc) 396 B
/** * Get CSS computed property of the given element * @method * @memberof Popper.Utils * @argument {Eement} element * @argument {String} property */ export default function getStyleComputedProperty(element, property) { if (element.nodeType !== 1) { return []; } // NOTE: 1 DOM access here const css = getComputedStyle(element, null); return property ? css[property] : css; }