mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
10 lines
169 B
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
|
|
}
|