iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
15 lines • 456 B
JavaScript
/** An Iterator object that yields nothing. */
var EmptyIterator = /** @class */ (function () {
function EmptyIterator() {
}
EmptyIterator.prototype[Symbol.iterator] = function () {
return this;
};
EmptyIterator.prototype.next = function () {
return { done: true, value: undefined };
};
return EmptyIterator;
}());
export { EmptyIterator };
export default EmptyIterator;
//# sourceMappingURL=EmptyIterator.js.map