list_unique

Get unique values in list

Example

1
{{ [1, 2, 3, 4, 5, 5] | list_unique }} => [1, 2, 3, 4, 5]

Input

Type Parameter Description Required
array source The list to get unique values from. Comes before the | sign. Required
string attribute The attribute to get unique values from, defaults to null  

Output

Type Description
array The unique values from the list