MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isElement

Function isElement

packages/core/src/utils/is.ts:142–144  ·  view source on GitHub ↗
(wat: unknown)

Source from the content-addressed store, hash-verified

140 * Import `isElement` from `@sentry/browser-utils` instead.
141 */
142export function isElement(wat: unknown): boolean {
143 return typeof Element !== 'undefined' && isInstanceOf(wat, Element);
144}
145
146/**
147 * Checks whether given value's type is an regexp

Callers

nothing calls this directly

Calls 1

isInstanceOfFunction · 0.85

Tested by

no test coverage detected