3 ms·
I think this can look pretty nice, properly formatted: let x = conditional1 ? bar() : conditional2 ? baz() : conditional3 ? quux()
by mikeash 12y ago
I think this can look pretty nice, properly formatted:
let x = conditional1 ? bar() :
conditional2 ? baz() :
conditional3 ? quux() :
someDefault