Hacker News new | ask | show | jobs
by pluma 3029 days ago
Remember when console.log was available when the dev tools were open but would be undefined otherwise, so your code would break unexpectedly but then work fine when you tried to figure out what went wrong?
1 comments

Oh gaahd, It's all coming back to me now. function log(msg) { if (console.log) console.log(msg) }