For JavaScript I found the following solution for Internet Explorer to be able to deal with console.log without hitting F12. 'console' is undefined error for Internet Explorer
however when I use the following lines in Typescript I can't compile.
if (!console) console = {log: function() {}};
Any ideas?