philnash@programming.dev to JavaScript@programming.devEnglish · 11 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square30fedilinkarrow-up139arrow-down111
arrow-up128arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.comphilnash@programming.dev to JavaScript@programming.devEnglish · 11 months agomessage-square30fedilink
minus-squarestockRot@lemmy.worldlinkfedilinkarrow-up3·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