UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

17 lines (15 loc) 805 B
import _Symbol from "@babel/runtime-corejs3/core-js/symbol"; import _Symbol$asyncIterator from "@babel/runtime-corejs3/core-js/symbol/async-iterator"; import _Symbol$iterator from "@babel/runtime-corejs3/core-js/symbol/iterator"; import _getIteratorMethod from "@babel/runtime-corejs3/core-js/get-iterator-method"; export default function _asyncIterator(iterable) { var method; if (typeof _Symbol !== "undefined") { if (_Symbol$asyncIterator) method = iterable[_Symbol$asyncIterator]; if (method == null && _Symbol$iterator) method = _getIteratorMethod(iterable); } 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); }