Back to Lo

Core Omitbyvalues

docs/data/core-omitbyvalues.md

1.53.0180 B
Original Source

Returns a map of the same type excluding the provided values.

go
m := lo.OmitByValues(map[string]int{"foo": 1, "bar": 2, "baz": 3}, []int{1, 3})
// map[string]int{"bar": 2}