Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Apr 4, 2023
1 parent 6e4cd89 commit 2a74434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ values := lo.Values[string, int](map[string]int{"foo": 1, "bar": 2})

### ValueOr

Creates an array of the map values.
Returns the value of the given key or the fallback value if the key is not present.

```go
value := lo.ValueOr[string, int](map[string]int{"foo": 1, "bar": 2}, "foo", 42)
Expand Down

0 comments on commit 2a74434

Please sign in to comment.