Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samber authored Jul 29, 2024
1 parent 3ce749f commit e7746b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,8 @@ exists := lo.HasKey(map[string]int{"foo": 1, "bar": 2}, "baz")
### Values

Creates an array of the map values.
> [!NOTE]
> The order of the values isn't guaranteed to be sorted for performance reason, so sort the output slice if needed.

Use the UniqValues variant to deduplicate common values.

```go
values := lo.Values(map[string]int{"foo": 1, "bar": 2})
Expand All @@ -1110,8 +1110,6 @@ values := lo.Values(map[string]int{"foo": 1, "bar": 2}, map[string]int{"bar": 2}

Creates an array of unique map values.

Use the UniqValues variant to deduplicate common values.

```go
values := lo.Values(map[string]int{"foo": 1, "bar": 2})
// []int{1, 2}
Expand Down

0 comments on commit e7746b7

Please sign in to comment.