> For the complete documentation index, see [llms.txt](https://wopehq.gitbook.io/muninn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wopehq.gitbook.io/muninn/config/array-transform.md).

# Array Transform

When you want to change an array result while parsing, you can use the `arrayTransform` method for this.

{% code title="HTML" %}

```markup
<ul>
  <li>orange</li>
  <li>apple</li>
  <li>pineapple</li>
</ul>

```

{% endcode %}

{% code title="Config" %}

```javascript
{
    "fruits": {
        "selector": "ul li | array",
        "arrayTransform": (arr) => arr.join(', ')
    },
}
```

{% endcode %}

{% code title="Output" %}

```javascript
{
    "fruits": "orange, apple, pineapple",
}
```

{% endcode %}
