MCPcopy Create free account
hub / github.com/sindresorhus/execa / isAsyncIterableObject

Function isAsyncIterableObject

lib/stdio/type.js:151–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149const isTransformStream = value => isReadableStream(value?.readable) && isWritableStream(value?.writable);
150
151const isAsyncIterableObject = value => isObject(value) && typeof value[Symbol.asyncIterator] === 'function';
152const isIterableObject = value => isObject(value) && typeof value[Symbol.iterator] === 'function';
153const isObject = value => typeof value === 'object' && value !== null;
154

Callers 1

getStdioItemTypeFunction · 0.85

Calls 1

isObjectFunction · 0.85

Tested by

no test coverage detected