MCPcopy
hub / github.com/preactjs/preact / removeNode

Function removeNode

src/util.js:24–26  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

22 * @param {import('./index').ContainerNode} node The node to remove
23 */
24export function removeNode(node) {
25 if (node && node.parentNode) node.parentNode.removeChild(node);
26}
27
28export const slice = EMPTY_ARR.slice;

Callers 3

diffFunction · 0.90
diffElementNodesFunction · 0.90
unmountFunction · 0.90

Calls 1

removeChildMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…