Prism · Arrays

$unique

Removes repeated values from an array, keeping the first of each. Values are compared by their JSON text, so objects and arrays count too.

The source
{ tags: ['draft', 'review', 'draft', 'done', 'review'] }
The config
{ $unique: { $ref: '$.tags' } }
What comes out
['draft', 'review', 'done']
Output matches the expected value

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