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

Function isBuiltin

packages/core/src/utils/is.ts:36–38  ·  view source on GitHub ↗

* Checks whether given value is an instance of the given built-in class. * * @param wat The value to be checked * @param className * @returns A boolean representing the result.

(wat: unknown, className: string)

Source from the content-addressed store, hash-verified

34 * @returns A boolean representing the result.
35 */
36function isBuiltin(wat: unknown, className: string): boolean {
37 return objectToString.call(wat) === `[object ${className}]`;
38}
39
40/**
41 * Checks whether given value's type is ErrorEvent

Callers 6

isErrorEventFunction · 0.85
isDOMErrorFunction · 0.85
isDOMExceptionFunction · 0.85
isStringFunction · 0.85
isPlainObjectFunction · 0.85
isRegExpFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected