Files
e-tib.com/node_modules/.pnpm/graphql@16.13.2/node_modules/graphql/jsutils/isAsyncIterable.js
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

19 lines
481 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.isAsyncIterable = isAsyncIterable;
/**
* Returns true if the provided object implements the AsyncIterator protocol via
* implementing a `Symbol.asyncIterator` method.
*/
function isAsyncIterable(maybeAsyncIterable) {
return (
typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0
? void 0
: maybeAsyncIterable[Symbol.asyncIterator]) === 'function'
);
}