refactoring

This commit is contained in:
Philipp Kühn
2021-09-22 22:45:27 +02:00
parent f4e3b07672
commit e5c765c8e4
9 changed files with 30 additions and 22 deletions

View File

@@ -9,6 +9,7 @@ export default function mergeAttributes(...objects: Record<string, any>[]): Reco
if (!exists) {
mergedAttributes[key] = value
return
}

View File

@@ -1,5 +1,5 @@
export default function removeElement(element: HTMLElement): void {
if (element && element.parentNode) {
if (element?.parentNode) {
element.parentNode.removeChild(element)
}
}