MCPcopy Create free account
hub / github.com/Web3Auth/Auth / hasProperty

Function hasProperty

src/utils/utils.ts:31–33  ·  view source on GitHub ↗
(value: unknown, key: Key)

Source from the content-addressed store, hash-verified

29}
30
31export function hasProperty<Key extends PropertyKey>(value: unknown, key: Key): value is Record<Key, unknown> {
32 return isObject(value) && key in value;
33}
34
35export function generateRecordId(): string {
36 const cr = typeof globalThis === "object" ? globalThis.crypto : null;

Callers 12

utils.test.tsFile · 0.90
isJRPCNotificationFunction · 0.90
isJRPCRequestFunction · 0.90
isRequestFunction · 0.90
fromLegacyRequestFunction · 0.90
constructorMethod · 0.90
_coerceRequestMethod · 0.90
isMinimalRequestFunction · 0.90
hasValidParamsFunction · 0.90
getOriginalIdFunction · 0.90
getOriginalMessageFunction · 0.90

Calls 1

isObjectFunction · 0.85

Tested by

no test coverage detected