UNPKG

@tdb/web

Version:

Common condiguration for serving a web-site and testing web-based UI components.

25 lines (18 loc) 644 B
var _Symbol$iterator = require("../core-js/symbol/iterator"); var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator"); var _Symbol = require("../core-js/symbol"); function _asyncIterator(iterable) { var method; if (typeof _Symbol === "function") { 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;