# Iterator

## Methods Summarized

| Type                                                                                       | Name            | Summary                                                                                                                                                |
| ------------------------------------------------------------------------------------------ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [IterableValue](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/iterablevalue) | [next()](#next) | An iterator is an object which defines a sequence and potentially a return value upon its termination Returns the next IterableValue for this Iterable |

## Methods Detailed

### next()

An iterator is an object which defines a sequence and potentially a return value upon its termination Returns the next IterableValue for this Iterable

**Returns:** [IterableValue](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/iterablevalue) the next IterableValue

**Sample**

```js
for(var entry of set.value()) {}
```

***
