Stop nesting ternaries in JavaScript

Open link in next tab

Stop nesting ternaries in JavaScript

https://www.sonarsource.com/blog/stop-nesting-ternaries-javascript/

Nesting ternary operators makes code more complex and less clear. Let's investigate other ways to write conditional expressions.

Stop nesting ternaries in JavaScript