Sha256: de366e4e12780c509e6318432e1d3936e1e1b54c172cd3c4797b5074df32c759

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

import _getIterator from "../../core-js/get-iterator";
import _Symbol$iterator from "../../core-js/symbol/iterator";
import _Symbol from "../../core-js/symbol";
export default function _asyncIterator(iterable) {
  if (typeof _Symbol === "function") {
    if (_Symbol.asyncIterator) {
      var method = iterable[_Symbol.asyncIterator];
      if (method != null) return method.call(iterable);
    }

    if (_Symbol$iterator) {
      return _getIterator(iterable);
    }
  }

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
condenser-0.0.4 lib/condenser/processors/node_modules/@babel/runtime/helpers/es6/asyncIterator.js