11 lines
148 B
Go
11 lines
148 B
Go
package helper
|
|
|
|
func IsContainInArr[T comparable](a T, arr []T) bool {
|
|
for _, v := range arr {
|
|
if a == v {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|