core-ktx / androidx.util / android.util.SparseArray / contains

contains

inline operator fun <T> SparseArray<T>.contains(key: Int): Boolean

Returns true if the collection contains key.