crunchy-cli/utils/std.go

10 lines
169 B
Go

package utils
func ElementInSlice[T comparable](check T, toCheck []T) bool {
for _, item := range toCheck {
if check == item {
return true
}
}
return false
}