philnash@programming.dev to JavaScript@programming.devEnglish · 11 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square33fedilinkarrow-up141arrow-down111
arrow-up130arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.comphilnash@programming.dev to JavaScript@programming.devEnglish · 11 months agomessage-square33fedilink
minus-squarestockRot@lemmy.worldlinkfedilinkarrow-up4·11 months agoI don’t use JavaScript and only learned what a ternary is from this article, but that example was pretty damn readable in my opinion
I don’t use JavaScript and only learned what a ternary is from this article, but that example was pretty damn readable in my opinion