Say I have an object that contains constants and I...
# announcements
j
Say I have an object that contains constants and I want to check if a value is in that object's values, is there a short way to do this? EX:
Copy code
object Links {
    val HELP = "https://..."
    val SHOP = "https://..."
    val BLOG = "https://..."
    val GALLERY = "https://..."
}
What I'm looking for is the ability to do something like
if (it in Links) doStuff()
where
it == "https://..."