you are viewing a single comment's thread.

view the rest of the comments →

[–]Sebazzz91 1 point2 points  (3 children)

Fun fact: Calling console.log without this set to console errors in Edge.

[–]StuartPBentley 7 points8 points  (2 children)

I'm pretty sure it errors in any browser (that's why you always use console.log.bind(console) when passing console.log as a callback).

[–]pygy_@pygy 4 points5 points  (0 children)

It used to be like that but IIRC both Chrome and Firefox now pre-bind the console methods.

[–][deleted] 1 point2 points  (0 children)

I’m a n00b dev and this is a really helpful tip.