createIterator

createIterator(): Iterator;

The createIterator method creates an iterator for the Set class.

Use an iterator associated with the set to remember the current position in the set. For details about iterators, see the Iterator class.