How to Add a Clone Function to Function? 1 2 3 4 5 6 7 8 Function.prototype.clone = function() { var that = this; var temp = function temporary() { return that.apply(this, arguments); }; for( key in this ) { temp[key] = this[key]; } return temp; };