@antv/l7plot-component
Version:
Components for L7Plot
11 lines • 367 B
JavaScript
export function hasClass(elements, cName) {
return !!elements.className.match(new RegExp(`(\\s|^)${cName}(\\s|$)`));
}
export function clearDom(container) {
const children = container.childNodes;
const length = children.length;
for (let i = length - 1; i >= 0; i--) {
container.removeChild(children[i]);
}
}
//# sourceMappingURL=dom.js.map