refactoring
This commit is contained in:
@@ -9,6 +9,7 @@ export default function mergeAttributes(...objects: Record<string, any>[]): Reco
|
||||
|
||||
if (!exists) {
|
||||
mergedAttributes[key] = value
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export default function removeElement(element: HTMLElement): void {
|
||||
if (element && element.parentNode) {
|
||||
if (element?.parentNode) {
|
||||
element.parentNode.removeChild(element)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user