Microsoft® JScript Enumerator Object |
Language Reference Version 3 |
Provides a way to enumerate items in a collection.
new Enumerator(collection)The collection argument is any collection object.
Collections differ from arrays in that the members of a collection are not directly accessible. Instead of using indices, as you would with arrays, you can only move the current item pointer to the first or next element of a collection.The Enumerator object provides a way to access any member of a collection and behaves similarly to the For...Each statement in VBScript.