Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
isTransientWriteError
Function · 0.80
constructor
Method · 0.80
_destroy
Method · 0.80
_onResponseBase
Method · 0.80
_stripUnchangedCrossOriginState
Method · 0.80
_methodCanHaveBody
Method · 0.80
_hasUnchangedBodyForRedirect
Method · 0.80
_prepareCache
Method · 0.80
sanitizeHeaders
Method · 0.80
_makeRequest
Method · 0.80
timeoutHandler
Function · 0.80
hasExplicitCredentialInUrlChange
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected