Sha256: 9754816e2bbcbfeef6c3aec806000f07b4ff5cd9baf03c8cad95932de43f80a4

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

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 = iterable[Symbol.iterator];
      if (method != null) return method.call(iterable);
    }
  }

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

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

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/runtime/helpers/asyncIterator.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/runtime/helpers/asyncIterator.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/runtime/helpers/asyncIterator.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/runtime/helpers/asyncIterator.js