JSFiddle - React, Tailwind, and code Playground
by ChaseWest
JavaScript
Function.prototype.profile = function(args){
console.profile(this.name);
this.call(null, args);
console.profileEnd();
}
Function.prototype.time = function(args){
console.time(this.name);
this.call(null, args);
console.timeEnd(this.name);
}
Function.prototype.info = function(){
for(var p in this){
console.log(p + " : " + this[p]);
}
}
var test = function test(){
console.log("this is a test");
};
test();
test.info();
test.profile();
test.time();