@philnash to JavaScriptEnglish • 7 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square34arrow-up143arrow-down111
arrow-up132arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.com@philnash to JavaScriptEnglish • 7 months agomessage-square34
minus-squareDodecahedron Decemberlinkfedilink7•7 months agoconst statement = specificStatement ?? nonSpecificStatement ?? someStatement ?? unrelatedStatement ?? ‘idk’;
const statement = specificStatement ?? nonSpecificStatement ?? someStatement ?? unrelatedStatement ?? ‘idk’;