Sha256: c82e4cf653f954fcd5c86abbc06ba042f41664a0921773382c91d684cc66124d

Contents?: true

Size: 580 Bytes

Versions: 30

Compression:

Stored size: 580 Bytes

Contents

function _asyncIterator(iterable) {
  var method;

  if (typeof Symbol !== "undefined") {
    if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
    if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
  }

  if (method == null) method = iterable["@@asyncIterator"];
  if (method == null) method = iterable["@@iterator"];
  if (method == null) throw new TypeError("Object is not async iterable");
  return method.call(iterable);
}

module.exports = _asyncIterator;
module.exports["default"] = module.exports, module.exports.__esModule = true;

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
isomorfeus-preact-10.5.7 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-preact-10.5.6 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-preact-10.5.5 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-preact-10.5.4 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-redux-4.1.6 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-preact-10.5.3 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-redux-4.1.5 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-preact-10.5.2 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-redux-4.1.4 node_modules/@babel/runtime/helpers/asyncIterator.js
isomorfeus-redux-4.1.3 node_modules/@babel/runtime/helpers/asyncIterator.js