Array Transform
When you want to change an array result while parsing, you can use the arrayTransform
method for this.
<ul>
<li>orange</li>
<li>apple</li>
<li>pineapple</li>
</ul>
{
"fruits": {
"selector": "ul li | array",
"arrayTransform": (arr) => arr.join(', ')
},
}
{
"fruits": "orange, apple, pineapple",
}
Last updated
Was this helpful?