Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ConcernedCoder
on Sept 2, 2020
|
parent
|
context
|
favorite
| on:
Lesser-known Web APIs
lol... yes, that's SMH level stuff...
how about:
setEnabled( Boolean( document.someBoolean ) )
lytedev
on Sept 2, 2020
|
prev
[–]
Just curious, but why `Boolean()` over `!!`?
angrais
on Sept 3, 2020
|
parent
[–]
I would imagine because it's much easier to read. What does '!!" Do again I just thought :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
how about: