philnash@programming.dev to JavaScript@programming.devEnglish · 9 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square20fedilinkarrow-up15arrow-down11
arrow-up14arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.comphilnash@programming.dev to JavaScript@programming.devEnglish · 9 months agomessage-square20fedilink
minus-squareDodecahedron December@sh.itjust.workslinkfedilinkarrow-up1·9 months agoconst statement = specificStatement ?? nonSpecificStatement ?? someStatement ?? unrelatedStatement ?? ‘idk’;
const statement = specificStatement ?? nonSpecificStatement ?? someStatement ?? unrelatedStatement ?? ‘idk’;