UNPKG

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.

15 lines 347 B
/** * @public * An iterator that is done. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any export const iteratorEmptyIterator = { [Symbol.iterator]() { return this; }, next() { return this.result; }, result: { done: true, value: null }, }; //# sourceMappingURL=iterator-empty-iterator.js.map