isAsyncIterable.js 415 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = isAsyncIterable;
  6. var _symbols = require("../polyfills/symbols.js");
  7. // eslint-disable-next-line no-redeclare
  8. function isAsyncIterable(maybeAsyncIterable) {
  9. return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[_symbols.SYMBOL_ASYNC_ITERATOR]) === 'function';
  10. }