export type TRemoveChildNodesArgs = Parameters; export type TRemoveChildNodesReturn = ReturnType; /** * Removes all child nodes of given node * @param el{Node} node * @throws {TypeError} removeChildNodes: el must be a Node * @example * // How to remove all child elements of a DOM node? * //
Block with child nodes
* const myDiv = document.getElementById("myBlock"); * removeChildNodes(myDiv); * console.log(Array.from(myDiv.children).length); // => 0 * @example * // Clear old autocomplete results before rendering a new response * removeChildNodes(searchResults); * searchResults.append(...nextResultItems); */ export declare const removeChildNodes: (el: Node) => void;