method memberof argument { Eement } element argument { String } property export default function getStyleComputedProperty ( element , property ? ) { if ( element . nodeType !== 1 ) { return [ ] ; } const window = element . ownerDocument ! . defaultView ; const css = ( window as Window ) . getComputedStyle ( element , null ) ; return property ? css [ property ] : css ; }