Sha256: 7e6bf52831bdaade610d11fc919276930bdc97c2736d5a7dac58c09249b6c1bc

Contents?: true

Size: 693 Bytes

Versions: 9

Compression:

Stored size: 693 Bytes

Contents

import _getIteratorMethod from "../../core-js/get-iterator-method";
import _Symbol$iterator from "../../core-js/symbol/iterator";
import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator";
import _Symbol from "../../core-js/symbol";
export default function _asyncIterator(iterable) {
  var method;

  if (typeof _Symbol !== "undefined") {
    if (_Symbol$asyncIterator) {
      method = iterable[_Symbol$asyncIterator];
      if (method != null) return method.call(iterable);
    }

    if (_Symbol$iterator) {
      method = _getIteratorMethod(iterable);
      if (method != null) return method.call(iterable);
    }
  }

  throw new TypeError("Object is not async iterable");
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
condenser-0.3 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.0.12 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.0.11 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.0.10 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.0.9 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js