• a function to clone a style object

    Parameters

    • style: Partial<CSSStyleDeclaration>

      the style to clone

    Returns CSSStyleDeclaration

    the cloned style