Docs (4.0.0)
class ManagedList method

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