2024-10-17 21:31:23 +03:00

7 lines
210 B
JavaScript

export function isAsyncIterable(value) {
return (typeof value === 'object' &&
value != null &&
Symbol.asyncIterator in value &&
typeof value[Symbol.asyncIterator] === 'function');
}