I remember when a friend of mine first tried explaining De Morgan's Law to me. It took a little while for it to click. But now I get it.
This is a great idea for a lint plugin. It's both educational and helpful.
This is a great idea for a lint plugin. It's both educational and helpful.
Reposted from
Azat S.
Released ESLint Plugin De Morgan.
A plugin for transforming logical expressions in JavaScript code to make them simpler and more understandable.
From this:
!(a && !b && c <= d)
To this:
!a || b || c > d
github.com/azat-io/esli...
⬇️
A plugin for transforming logical expressions in JavaScript code to make them simpler and more understandable.
From this:
!(a && !b && c <= d)
To this:
!a || b || c > d
github.com/azat-io/esli...
⬇️
Comments