according to ECMAScript specification an object implementing the Iterator Interface must have the next method, but there are also optional return and <
next
return