Gimp.Choice.prototype.is_valid

function is_valid(nick: String): Boolean {
    // Gjs wrapper for gimp_choice_is_valid()
}
  

This procedure checks if the given nick is valid and refers to an existing choice.

Since 3.0

nick

the nick to check.

Returns

Whether the choice is valid.