ix
Version:
The Interactive Extensions for JavaScript
18 lines (16 loc) • 475 B
JavaScript
import { IterableX } from './iterablex.mjs';
class EmptyIterable extends IterableX {
*[Symbol.iterator]() {
// eslint-disable-next-line no-empty
}
}
/**
* Returns an empty iterable sequence.
*
* @template TSource The type used for the iterable type parameter of the resulting sequence.
* @returns {IterableX<never>} An iterable sequence with no elements.
*/
export function empty() {
return new EmptyIterable();
}
//# sourceMappingURL=empty.mjs.map