split helpers and utilities
This commit is contained in:
5
packages/core/src/utilities/removeElement.ts
Normal file
5
packages/core/src/utilities/removeElement.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function removeElement(element: HTMLElement) {
|
||||
if (element && element.parentNode) {
|
||||
element.parentNode.removeChild(element)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user