diff --git a/contains.go b/contains.go index 55cd559..7f81ff1 100644 --- a/contains.go +++ b/contains.go @@ -1,9 +1,7 @@ package underscore -import "constraints" - // Contains returns true if the value is present in the slice -func Contains[T constraints.Ordered](values []T, value T) bool { +func Contains[T comparable](values []T, value T) bool { for _, v := range values { if v == value { return true