I was wondering, how can i find out with **javascript** if the console object is available?

i have the problem that if i forget to remove a debug output like `console.log('sthg')` i get errors in several browsers, if there is no firebug, or similar, active.

thanks for help

*next to that problem i am interested in all informations about the console object. has anybody some documentation link, or so? is it a standard? and so on...*