MCPcopy Create free account
hub / github.com/microsoft/SandDance / isElement

Function isElement

docs/app/js/sanddance-app.js:6694–6697  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

6692 children.forEach((child)=>addChild(parentElement, child));
6693}
6694function isElement(el) {
6695 //nodeType cannot be zero https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
6696 return !!el.nodeType;
6697}
6698function mount(element, container) {
6699 container.innerHTML = "";
6700 if (element) addChild(container, element);

Callers 1

addChildFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected