MCPcopy
hub / github.com/sindresorhus/got / has

Method has

source/core/utils/weakable-map.ts:21–27  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

19 }
20
21 has(key: K): boolean {
22 if (typeof key === 'object') {
23 return this.weakMap.has(key as unknown as Record<string, unknown>);
24 }
25
26 return this.map.has(key);
27 }
28}

Callers 15

isTransientWriteErrorFunction · 0.80
constructorMethod · 0.80
_destroyMethod · 0.80
_onResponseBaseMethod · 0.80
_methodCanHaveBodyMethod · 0.80
_prepareCacheMethod · 0.80
sanitizeHeadersMethod · 0.80
_makeRequestMethod · 0.80
timeoutHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected