go-jamming/common/slices.go

11 lines
150 B
Go
Raw Normal View History

2021-04-08 16:37:04 +02:00
package common
func Includes(slice []string, elem string) bool {
for _, el := range slice {
if el == elem {
return true
}
}
return false
}