3 ms·
I've learnt most of those the hard way, event though TSX is a great safe guard because I tend to slip. I find funny the persistance in sidestepping a `.length
by tuyiown 5y ago
I've learnt most of those the hard way, event though TSX is a great safe guard because I tend to slip.
I find funny the persistance in sidestepping a `.length > 0` at all costs.
- eyelidlessness 5y agoPersonally I hate implied casting of booleans (and implied casting generally), and go out of my way to make boolean checks explicit whenever I touch the code. These kinds of shortcuts made some sense when minification was commonly a manual thing. But now, I want code to be as verbose as necessary for it to be unambiguous.