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

Function isObject

src/utils/utils.ts:27–29  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

25}
26
27export function isObject(value: unknown): value is Record<PropertyKey, unknown> {
28 return Boolean(value) && typeof value === "object" && !Array.isArray(value);
29}
30
31export function hasProperty<Key extends PropertyKey>(value: unknown, key: Key): value is Record<Key, unknown> {
32 return isObject(value) && key in value;

Callers 12

utils.test.tsFile · 0.90
isValidJsonFunction · 0.90
isInstanceFunction · 0.90
deserializeDataFunction · 0.90
deserializeErrorFunction · 0.90
isMinimalRequestFunction · 0.90
hasValidParamsFunction · 0.90
getOriginalIdFunction · 0.90
serializeCauseFunction · 0.90
getOriginalMessageFunction · 0.90
dataHasCauseFunction · 0.90
hasPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected