Gcr.Collection.prototype.contains

function contains(object: GObject.Object): Boolean {
    // Gjs wrapper for gcr_collection_contains()
}
  

Check whether the collection contains an object or not.

object

object to check

Returns

whether the collection contains this object