[Short JS Tip] Improved readability for falsy value check
Checking for a falsy value in JavaScript is where bugs can creep into your code easily.
I recently came up with a good way of handling falsy value testing in a nice way.
if (!a) { /* do some stuff */ }
Does the internal logic get executed if?
a === '...
andrewbkim.dev1 min read