Skip to content

The Basics/Utility Classes/EmptyIterator

Reference Documentation

Find reference documentation for EmptyIterator here, or navigate to it via the 'Reference' tab.

Rarely, it is semantically useful to have an empty iterator that follows the iterator pattern but will never have content.

1
2
3
4
5
let iter: EmptyIterator = new EmptyIterator();

console.log(iter.hasNext());

// Prints 'false'.