philnash@programming.dev to JavaScript@programming.devEnglish · 11 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square34fedilinkarrow-up143arrow-down111
arrow-up132arrow-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