Skip to content Skip to footer navigation

Unique Modifier

Returns all of the unique items in the array:

checklist:
- zebra
- hippo
- hyena
- giraffe
- zebra
- hippo
- hippo
- hippo
- hippo
{{ checklist | unique | list }}
{{ Statamic::modify($checklist)->unique()->list() }}
zebra, hippo, hyena, giraffe