EntityIterator Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

Implements

This type is usable for iterating over a set of entities. This means it can be used in statements like for...of statements, Array.from(iterator), and more.

Methods

[Symbol.iterator]

[Symbol.iterator](): Iterator<Entity>

Returns Iterator<Entity>

Important

This function can't be called in read-only mode.

next

next(): IteratorResult<Entity>

Retrieves the next item in this iteration. The resulting IteratorResult contains .done and .value properties which can be used to see the next Entity in the iteration.

Returns IteratorResult<Entity>

Important

This function can't be called in read-only mode.