In Arcade, you can use the Concatenate function with an array of the items you want joined. Specifying the separator, in this example, an empty space, will result in that being placed in between each value of the array.
var fields = [
$feature.field1,
$feature.field2,
$feature.field3,
...
$feature.fieldN
]
return Concatenate(fields, ' ')
It's also possible to filter that array so that null entries are skipped. If you have some addresses with or without units, pre/post directionals, etc., it can be nice to avoid extra whitespace.
- Josh Carlson
Kendall County GIS