mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-03 05:33:49 -05:00
15 lines
294 B
Markdown
15 lines
294 B
Markdown
---
|
|
title: 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]
|
|
---
|
|
|
|
|
|
```go-html-template
|
|
{{ slice 1 3 2 1 | uniq }} --> [1 3 2]
|
|
```
|