Prism · Strings

$join

Joins parts into one string with sep between them. Parts are turned into strings, and parts may be a list or any expression that evaluates to one.

The source
{ first: 'Ada', last: 'Lovelace' }
The config
{
  $join: {
    parts: [{ $ref: '$.first' }, { $ref: '$.last' }],
    sep: ' ',
  },
}
What comes out
'Ada Lovelace'
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.