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