blob: d8b6396b671a4a0e5ab5bcd3c4888487756669d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
export const clearDomElement = el => {
if (!el || !el.firstChild) return;
while (el.firstChild) {
el.removeChild(el.firstChild);
}
};
export default () => ({
clearDomElement,
});
|