Interface representing all oredered collections.
This includes List, Stack, Map, OrderedMap, Set, and OrderedSet.
return of isOrdered() return true in that case.
Shallowly converts this collection to an Array.
toArray(): Array<T>Returns an iterator that iterates over the values in this collection.
[Symbol.iterator](): IterableIterator<T>