Back to Lo

Core Values

docs/data/core-values.md

1.53.0227 B
Original Source

Creates a slice of the map values across one or more maps.

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

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