MCPcopy
hub / github.com/fengyuanchen/cropperjs / isElement

Function isElement

packages/utils/src/functions.ts:89–91  ·  view source on GitHub ↗
(node: unknown)

Source from the content-addressed store, hash-verified

87 * @returns {boolean} Returns `true` if the given node is an element; otherwise, `false`.
88 */
89export function isElement(node: unknown): node is Element {
90 return typeof node === 'object' && node !== null && (node as Node).nodeType === 1;
91}
92
93const REGEXP_CAMEL_CASE = /([a-z\d])([A-Z])/g;
94

Callers 4

index.spec.tsFile · 0.90
connectedCallbackMethod · 0.90
$handlePointerDownMethod · 0.90
constructorMethod · 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…