Skip to content

Instantly share code, notes, and snippets.

@mikeacjones
Created June 17, 2021 23:09
Show Gist options
  • Save mikeacjones/d08b02cb7c583402069f3b9d5f807b58 to your computer and use it in GitHub Desktop.
Save mikeacjones/d08b02cb7c583402069f3b9d5f807b58 to your computer and use it in GitHub Desktop.
%dw 2.0
output application/json
fun myFunc(a: Array<String> | String) = a match {
case is Array<String> -> $ joinBy ','
else -> a
}
---
myFunc(["Test", "Test2"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment