GLib.KeyFile.prototype.has_group

function has_group(group_name: String): Boolean {
    // Gjs wrapper for g_key_file_has_group()
}
  

Looks whether the key file has the group group_name.

Since 2.6

group_name

a group name

Returns

true if group_name is a part of key_file, false otherwise.