philnash to JavaScriptEnglish · 1 year agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square34fedilinkarrow-up143arrow-down111
arrow-up132arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.comphilnash to JavaScriptEnglish · 1 year agomessage-square34fedilink
minus-squarecoloredgrayscalelinkfedilinkarrow-up10·1 year ago pleasure of refactoring this mess took half an hour to understand If you can use any of the jetBrains IDE it can rewrite it to if/else with a few clicks (or [alt] +[return])
minus-squarekassuro@feddit.delinkfedilinkarrow-up2·1 year agoAh that would be helpful. Gotta try that the next time I encounter such a monstrosity.
If you can use any of the jetBrains IDE it can rewrite it to if/else with a few clicks (or [alt] +[return])
Ah that would be helpful. Gotta try that the next time I encounter such a monstrosity.