Gio.content_type_equals

function content_type_equals(type1: String, type2: String): Boolean {
    // Gjs wrapper for g_content_type_equals()
}
  

Compares two content types for equality.

type1

a content type string

type2

a content type string

Returns

true if the two strings are identical or equivalent, false otherwise.