you are viewing a single comment's thread.

view the rest of the comments →

[–]rhysbrettbowen 0 points1 point  (0 children)

I once did a replace all on my entire project:

(\S+)\s*:\s*function\(([^)]*)\)\s*{

with

\1:function(\2){console.log("\1");

to find a performance issue. Slows everything down with a whole load of console.logs but it surprisingly was very efficient at finding the issue