Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ConcernedCoder
· 6y ago · 0 comments
lol... yes, that's SMH level stuff...
how about:
setEnabled( Boolean( document.someBoolean ) )
Comments
[–]
lytedev
6y ago
Just curious, but why `Boolean()` over `!!`?
[–]
angrais
6y ago
I would imagine because it's much easier to read. What does '!!" Do again I just thought :)