Back to Lo

Core Some

docs/data/core-some.md

1.53.0184 B
Original Source

Returns true if at least one element of a subset is contained in a collection. Returns false for an empty subset.

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