How to prevent IE from messing with console.log

Short answer

  1. Add the following before any use of console.log:

    Or (which is OK with JSHint’s undef rule):

    Or make a log function that will not add a potentially useless object and that you will use instead of console.log:

    (or just make sure you do not use console.log)

Something more detailed

Continue reading How to prevent IE from messing with console.log