MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / clearChildren

Function clearChildren

js/lib.js:7–11  ·  view source on GitHub ↗
(parentElmt)

Source from the content-addressed store, hash-verified

5 * @param {Element} parentElmt - Parent element to be cleared of children.
6 */
7 const clearChildren = function(parentElmt) {
8 while (parentElmt.firstChild) {
9 parentElmt.removeChild(parentElmt.firstChild);
10 }
11 };
12
13 /**
14 * Creates and appends an option element to a given Select element.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected