MCPcopy Create free account
hub / github.com/denoland/std / isIterable

Function isIterable

crypto/crypto.ts:341–343  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

339}
340
341function isIterable<T>(obj: unknown): obj is Iterable<T> {
342 return typeof (obj as Iterable<T>)[Symbol.iterator] === "function";
343}
344
345function isAsyncIterable<T>(obj: unknown): obj is AsyncIterable<T> {
346 return typeof (obj as AsyncIterable<T>)[Symbol.asyncIterator] === "function";

Callers 2

digestFunction · 0.70
digestSyncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected