go-jamming/common/slices.go

11 lines
150 B
Go

package common
func Includes(slice []string, elem string) bool {
for _, el := range slice {
if el == elem {
return true
}
}
return false
}