objects
Returns an iterable iterator for this list.
objects(): IterableIterator<T>
Notes
- The iterable iterator can be used to iterate over the list using a ‘for…of’ statement, without being able to modify the list itself (similar to the
Array.values
method). - If the list is unlinked, the iterator stops immediately.
Note
The behavior of the iterator is undefined if the object after the current object is removed, moved, or if another object is inserted before it. Removing the current object or any previous objects during iteration is safe.
Related
- class ManagedListA data structure that contains an ordered set of managed objects.