Nodejs Utililty Methods Function Clone

List of utility methods to do Function Clone

Description

The list of methods to do Function Clone are organized into topic(s).

Method

clone()
Function.prototype.clone = function() {
  var that = this;
  var newFunc = function() {
    return that.apply(this, arguments); 
  };
  for (var i in this) {
    newFunc[i] = this[i];
  return newFunc;
...