you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 2 years ago (1 child)

I've never seen the !0 and !1, it is dumb and indicates either young or terrible devs.

Boolean(window.chrome) is the best, !!window.chrome is good, no need to test if it's equal to true if you make it a boolean beforehand.

  • source
  • parent
  • hideshow 1 child comment