Hacker News new | ask | show | jobs
by alexyim 5572 days ago
One gotcha I've noticed a lot is when people forget to check for Console object. Or they might do this (doesn't work):

  if(!console)
instead of

  if(!window.console) or if( typeof console === 'undefined' )
1 comments

I have to plug my console wrapper which takes care of problems like these :)

https://github.com/amadeus/dbg