Sha256: 22d597928e05ff862990dd629d748971103d6f19fb6e914ae8de257489ac1c57

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

export default (function (iterable) {
  if (typeof Symbol === "function") {
    if (Symbol.asyncIterator) {
      var method = iterable[Symbol.asyncIterator];
      if (method != null) return method.call(iterable);
    }

    if (Symbol.iterator) {
      return iterable[Symbol.iterator]();
    }
  }

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wabur-0.7.0 export/assets/js/vendor/plugin-babel/babel-helpers/asyncIterator.js
wabur-0.6.2 export/assets/js/vendor/plugin-babel/babel-helpers/asyncIterator.js
wabur-0.6.1 export/assets/js/vendor/plugin-babel/babel-helpers/asyncIterator.js
wabur-0.6.0 export/assets/js/vendor/plugin-babel/babel-helpers/asyncIterator.js
wabur-0.5.0 export/assets/js/vendor/plugin-babel/babel-helpers/asyncIterator.js