Back to Lo

Core Without

docs/data/core-without.md

1.53.0101 B
Original Source

Returns a slice excluding all given values.

go
lo.Without([]int{0, 2, 10}, 2)
// []int{0, 10}