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

Function isInstance

src/utils/jrpc.ts:114–116  ·  view source on GitHub ↗
(value: unknown, symbol: symbol)

Source from the content-addressed store, hash-verified

112 * @returns Whether the value has `{ [symbol]: true }` in its prototype chain.
113 */
114export function isInstance(value: unknown, symbol: symbol): value is { [key: symbol]: true } {
115 return isObject(value) && symbol in value && value[symbol] === true;
116}
117
118// ─── Unique ID ──────────────────────────────────────────────────────────────────
119

Callers 3

utils.test.tsFile · 0.90
isInstanceMethod · 0.90
isInstanceMethod · 0.90

Calls 1

isObjectFunction · 0.90

Tested by

no test coverage detected