Function.prototype.i = 0; Function.prototype._ = function() { this.i++; this.apply(this, arguments); }; function f(t, x) { alert(t + x + "\nItaration: " + arguments.callee.i); } f._(2, 3); f._("Abc", "Def");