Stop Nesting Ternaries in JavaScript
sonarsource.com