hugo/docs/content/en/functions/uniq.md
2023-02-23 07:52:04 +01:00

18 lines
307 B
Markdown

---
title: uniq
linktitle: uniq
description: Takes in a slice or array and returns a slice with duplicate elements removed.
categories: [functions]
menu:
docs:
parent: functions
keywords: [multilingual,i18n,urls]
signature: [uniq SET]
aliases: []
---
```
{{ slice 1 3 2 1 | uniq }} --> [1 3 2]
```