UNPKG

482 BJavaScriptView Raw
1import { IterableX } from './iterablex';
2class EmptyIterable extends IterableX {
3 *[Symbol.iterator]() {
4 // eslint-disable-next-line no-empty
5 }
6}
7/**
8 * Returns an empty iterable sequence.
9 *
10 * @export
11 * @template TSource The type used for the iterable type parameter of the resulting sequence.
12 * @returns {IterableX<never>} An iterable sequence with no elements.
13 */
14export function empty() {
15 return new EmptyIterable();
16}
17
18//# sourceMappingURL=empty.mjs.map