Back to Lo

Core Contains

docs/data/core-contains.md

1.53.0124 B
Original Source

Returns true if an element is present in a collection.

go
present := lo.Contains([]int{0, 1, 2, 3, 4, 5}, 5)
// true