sajad torkamani
// Define helper function
function getComputedCss(element: Element | null, property: string) {
  if (element) {
    return window.getComputedStyle(element, null).getPropertyValue(property)
  }
}


// Use function
getComputedCss(document. Body, 'font-family')

Sources

Leave a comment

Your email address will not be published. Required fields are marked *