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

Function isIterable

src/utils/jrpc.ts:145–147  ·  view source on GitHub ↗
(value: Iterable<unknown> | Record<PropertyKey, unknown>)

Source from the content-addressed store, hash-verified

143 * @returns Whether the value is an {@link Iterable}.
144 */
145export function isIterable(value: Iterable<unknown> | Record<PropertyKey, unknown>): value is Iterable<unknown> {
146 return Symbol.iterator in value;
147}
148
149/**
150 * Like Object.entries(), but includes symbol-keyed properties.

Callers 2

utils.test.tsFile · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected