rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
18 lines • 459 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.iteratorEmptyIterator = void 0;
/**
* @public
* An iterator that is done.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
exports.iteratorEmptyIterator = {
[Symbol.iterator]() {
return this;
},
next() {
return this.result;
},
result: { done: true, value: null },
};
//# sourceMappingURL=iterator-empty-iterator.js.map