---
title: .unique()
slug: unique
docTags: 
createdAt: 2021-09-14T16:37:07.000Z
---

This method returns unique elements from a list or sequence.

- Operates on: [List](docId\:ow-WLH3wkrNDTUVmo-RUe)&#x20;
- Returns: [List](docId\:xWH_cUkHj9waqaEfb7H71)&#x20;

### Syntax

`list.unique()`

- Returns a [List](docId\:xWH_cUkHj9waqaEfb7H71) of the elements in the list, filtered down to only its unique elements.

`list.unique{expression}`

- Returns a [List](docId\:xWH_cUkHj9waqaEfb7H71) of the elements in the list with the given expression applied to each element, and then filtered down to be unique. Functionally equivalent to: `list.map{expression}.unique()`

### Sample usage

- `underJobs.unique{department}` - Returns the unique set of departments that the current job manages

