code: function before(targetFunction, beforeFunction) {
  
      // Replacing the target function
      return function() {
  
        // Applying our function
        beforeFunction.apply(this, Array.prototype.slice.call(arguments));
  
        // Applying the original function
        return targetFunction.apply(this, Array.prototype.slice.call(arguments));
      };
    }
docs: Monkey Patching
  ----------------
  
  Some monkey patching shortcuts. Useful for sniffers and overriding
  native functions.