window.console vs console

If console isn't defined, it'll throw a reference error.  So it's either typeof console !== undefined or window.console.
Merge pull request #4 from brigand/patch-2

window.console vs console