UNPKG

@antv/l7plot-component

Version:
11 lines 367 B
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