Back to Lo

Core Every

docs/data/core-every.md

1.53.0170 B
Original Source

Returns true if all elements of a subset are contained in a collection, or if the subset is empty.

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