7 ms·
I settled on this a while ago which I think is perfectly readable: const myvar = foo < bar ? bar : bar < baz ? baz : lark < 10 ? lark
by _jsdw 7y ago
I settled on this a while ago which I think is perfectly readable:
const myvar
= foo < bar ? bar
: bar < baz ? baz
: lark < 10 ? lark
: 0