<@U0B8UKF8R> commented on <@U0B8UKF8R>’s file <htt...
# announcements
u
@jmfayard commented on @jmfayard’s file https://kotlinlang.slack.com/files/U0B8UKF8R/F8E51CTQA/use_case_for_the_ternary_operator.js: the kotlin translation of lines 5 to 11
Copy code
val knownErrors = listOf("messageSms", "image",  "message",  "phonebook_str", "phonebookId", "buttonLink", "phonebookId")
val focusedInput = error.keys.firstOrNull { it in knownErrors } ?: error("Uncaught TypeError: false.shift() is not a function")