Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 | 1x 9x 9x 72x | export const copyStyles = (from: HTMLElement, to: HTMLElement, which: string[]): void => {
const styles = window.getComputedStyle(from);
Iif (!styles) return;
for (const property of which) (to.style as any)[property] = (styles as any)[property];
};
|