> For the complete documentation index, see [llms.txt](https://conductor.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://conductor.js.org/api-reference/entries.md).

# entries

```erlang
entries :: Collection collection => Array entries
```

### description

Returns a `Collection` (`Array | Set | Object | Map`)'s entries as a bi-dimensional array of `[key, value]` pairs.

### examples

#### array

```javascript
import { entries } from 'conductor'

entries([3, 1, 4]) // [[0, 3], [1, 1], [2, 4]]
```

#### set

```javascript
import { entries } from 'conductor'

entries(new Set([3, 1, 4])) // [[3, 3], [1, 1], [4, 4]]
```

{% hint style="warning" %}
For Sets, the key is equal to the value
{% endhint %}

#### object

```javascript
import { entries } from 'conductor'

entries({ hello: 3, world: 1 }) // [['hello', 3], ['world', 1]]
```

#### map

```javascript
import { entries } from 'conductor'

entries(new Map([['hello', 3], ['world', 1]])) // [['hello', 3], ['world', 1]]
```
