<@U88M9PF3Q> commented on <@U0B8UKF8R>’s file <htt...
# announcements
u
@rgoomar commented on @jmfayard’s file https://kotlinlang.slack.com/files/U0B8UKF8R/F8E51CTQA/use_case_for_the_ternary_operator.js: Also, the javascript version could be simplified (inside of the map):
Copy code
let knownErrors = ["phonebook_str", "message", "image", "buttonLink", messageSms"]
let currentError = Object.keys(error)
let focusedInput = (knownErrors.indexOf(currentError) != -1) ? currentError : false
return focusedInput.shift()