Prism · Strings

$split

Cuts a string into a list at every sep.

The source
{ csv: 'apple,banana,cherry' }
The config
{ $split: { value: { $ref: '$.csv' }, sep: ',' } }
What comes out
['apple', 'banana', 'cherry']
Output matches the expected value

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