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

Function hasProp

packages/core/src/instrument/fetch.ts:228–230  ·  view source on GitHub ↗
(obj: unknown, prop: T)

Source from the content-addressed store, hash-verified

226}
227
228function hasProp<T extends string>(obj: unknown, prop: T): obj is Record<string, string> {
229 return !!obj && typeof obj === 'object' && !!(obj as Record<string, string>)[prop];
230}
231
232function getUrlFromResource(resource: FetchResource): string {
233 if (typeof resource === 'string') {

Callers 2

getUrlFromResourceFunction · 0.85
parseFetchArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected