MCPcopy
hub / github.com/QwikDev/qwik / isElement

Function isElement

packages/qwik/src/core/util/element.ts:11–13  ·  view source on GitHub ↗
(value: object)

Source from the content-addressed store, hash-verified

9};
10
11export const isElement = (value: object): value is Element => {
12 return (value as any).nodeType === 1;
13};
14
15export const isQwikElement = (value: object): value is QwikElement => {
16 const nodeType = (value as any).nodeType;

Callers 10

computeObjectFunction · 0.90
isContainerFunction · 0.90
pauseContainerFunction · 0.90
_pauseFromContextsFunction · 0.90
isContainerFunction · 0.90
getVnodeFromElFunction · 0.90
_setPropertyFunction · 0.90
querySelectorMethod · 0.90
assertElementFunction · 0.90
printParamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…