2.4.16.4.2 Enumerator.prototype.atEnd ( )

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

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

2. If collection is undefined, return true.

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

4. If state indicates that the end of the enumeration has been reached, return true.

5. Return false.

Show: