asynciterator.prototype
Version:
`AsyncIterator.prototype`, or a shared object to use.
16 lines (10 loc) • 347 B
JavaScript
var hasSymbols = require('has-symbols');
/* globals AsyncIterator: false */
var asyncIterProto = typeof AsyncIterator === 'function' ? AsyncIterator.prototype : {};
if (hasSymbols() && !(Symbol.iterator in asyncIterProto)) {
asyncIterProto[Symbol.iterator] = function () {
return this;
};
}
module.exports = asyncIterProto;
;