Since ternaries push you to use expressions, it makes your code less about control flow (if this, do that, else do something else) and more about "given this and that, send this value back".
It's very easy to write a lot of code in the if/else that should have been written as a set of functions acting one after the other to transform the data.
Of course if you've got small functions and aren't doing much within your if/else, it'll help long term maintainability.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Since ternaries push you to use expressions, it makes your code less about control flow (if this, do that, else do something else) and more about "given this and that, send this value back".
It's very easy to write a lot of code in the if/else that should have been written as a set of functions acting one after the other to transform the data.
Of course if you've got small functions and aren't doing much within your if/else, it'll help long term maintainability.