Fix typos

This commit is contained in:
Chalarangelo
2022-09-04 12:46:38 +03:00
parent 0ad42f60d6
commit 30baabe38f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ lastUpdated: 2021-01-07T00:37:43+02:00
Adds the provided styles to the given HTML element.
- Use `Object.assign()` and `ElementCSSInlineStyle.style` to merge the provided `styles` object into the style of the given element.
- Use `Object.assign()` and `HTMLElement.style` to merge the provided `styles` object into the style of the given element.
```js
const addStyles = (el, styles) => Object.assign(el.style, styles);