Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 305 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 305 Bytes

retouch.js

The retouch pattern of JavaScript

Usage

npm install retouch
var r = require('retouch');

var MyHelper = {
  double : function(x){
    return x*2;
  }
}

var retouched = r.exec(MyHelper);

r.mixin(Number.prototype, retouched);

console.log(2.0.double());