Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

2.4.16.4.3 Enumerator.prototype.item ( )

  1. If the this object is not an Enumerator object, raise a TypeError exception.

  2. Let collection be the value of the this object’s [[Collection]] property.

  3. If collection is undefined, return undefined.

  4. Let state be the value of the this object’s [[EnumerationState]] property.

  5. If state indicates that the end of the enumeration has been reached, return undefined.

  6. Return the current enumeration item as indicated by state.

Show:
© 2015 Microsoft