GLib.VariantDict.prototype.contains

function contains(key: String): Boolean {
    // Gjs wrapper for g_variant_dict_contains()
}
  

Checks if key exists in dict.

Since 2.40

key

the key to lookup in the dictionary

Returns

true if key is in dict