# Iterator

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/youtrack/devportal/llms.txt).

An object that enables traversal through the elements in a collection.

## Methods

### next

```JAVASCRIPT
static next()
```

Return Value
: | Type | Description |
: | --- | --- |
: |  Object  |    An object that contains values for the properties `done` and `value` properties.     If there are elements that were not traversed, `done` is `false` and `value` is the next element in the collection.     If all of the elements were traversed, `done` is `true` and `value` is `null`.    |

## See also

### Concepts

[YouTrack Workflow API](YouTrack-Api-Documentation.html)

