PlayerIterator Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Implements
- Iterator<Player>
This type is usable for iterating over a set of players. This means it can be used in statements like for...of statements, Array.from(iterator), and more.
Methods
[Symbol.iterator]
[Symbol.iterator](): Iterator<Player>
Returns Iterator<Player>
Important
This function can't be called in read-only mode.
next
next(): IteratorResult<Player>
Retrieves the next item in this iteration. The resulting IteratorResult contains .done and .value properties which can be used to see the next Player in the iteration.
Returns IteratorResult<Player>
Important
This function can't be called in read-only mode.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for