UNPKG

@wordpress/dom

Version:
10 lines 366 B
/** * Recursively checks if an element is empty. An element is not empty if it * contains text or contains elements with attributes such as images. * * @param {Element} element The element to check. * * @return {boolean} Whether or not the element is empty. */ export default function isEmpty(element: Element): boolean; //# sourceMappingURL=is-empty.d.ts.map