Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

lol... yes, that's SMH level stuff...

how about:

  setEnabled(
    Boolean(
      document.someBoolean
    )
  )


Just curious, but why `Boolean()` over `!!`?


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: