philnash@programming.dev to JavaScript@programming.devEnglish · 11 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square34fedilinkarrow-up143arrow-down110
arrow-up133arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.comphilnash@programming.dev to JavaScript@programming.devEnglish · 11 months agomessage-square34fedilink
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