window.console vs console

If console isn't defined, it'll throw a reference error.  So it should be either: 

    typeof console !== undefined && console.log(...)

or

    window.console.&& console.log(...)

(This will still throw a type error if someone defined console as something else, but I'm assuming sanity.)