VirtualallThis is true if all invocations of the given predicate on items in the collection are true.
Call the given predicate on each item in the collection. As soon as a call returns false, this returns false. Otherwise this returns true. For an empty collection this returns true.
This automatically reset's itself when it is called.
This function must not have any side-effects.
True if all predicate calls are true; false otherwise.
VirtualanyThis is true if any invocation of the given predicate on items in the collection is true.
Call the given predicate on each item in the collection. As soon as a call returns true, this returns true. Otherwise this returns false. For an empty collection this returns false.
This automatically reset's itself when it is called.
This function must not have any side-effects.
True if any predicate call is true; false otherwise.
VirtualeachOverridefirstStart this iterator all over again.
ReadonlycountThis read-only property is the total number of items in the iterated collection.
ReadonlykeyGets the current index to the item in the collection, assuming next has just returned true.
ReadonlyvalueGets the current item in the collection, assuming next has just returned true.
This interface defines properties and methods for iterating over a collection; it provides the next predicate and the value read-only property. Some Iterators also provide
keyproperty values along with eachvalue.Typical usage is:
It is an error if next is called after the underlying collection has been modified.
To avoid confusion when dealing with Iterables, iterators implement the Iterable.iterator property by just returning themselves.
Note that GoJS iteration is quite different than ECMAScript iteration. The GoJS collection classes were defined in GoJS before the ECMAScript collection classes were proposed.