MCPcopy Index your code
hub / github.com/nodejs/node / isIterable

Function isIterable

deps/undici/undici.js:1754–1756  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1752 }
1753 __name(isAsyncIterable, "isAsyncIterable");
1754 function isIterable(obj) {
1755 return !!(obj != null && (typeof obj[Symbol.iterator] === "function" || typeof obj[Symbol.asyncIterator] === "function"));
1756 }
1757 __name(isIterable, "isIterable");
1758 function hasSafeIterator(obj) {
1759 const prototype = Object.getPrototypeOf(obj);

Callers 2

wrapRequestBodyFunction · 0.70
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…