Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

joinBy

joinBy(Array<Any>, String): String

Merges an array into a single string value, using the provided string as a separator between elements.

Transform

        
     
1
2
3
4
%dw 2.0
output application/json
---
aa: ["a","b","c"] joinBy "-"
Output

        
     
1
2
3
{
  "aa": "a-b-c"
}