blob: af4473413f4bac43a4710c2356c0c84006797e25 (
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,
});
|