kotlin-stdlib / kotlin.collections / Set / contains contains Common JVM JS Native 1.0 abstract fun contains(element: @UnsafeVariance E): Boolean Checks if the specified element is contained in this collection.