borrow
v0.0.3
Published
borrow ======
Downloads
9
Readme
borrow
Installaction
npm install borrow
Example
require('borrow');
var a = {
method1: function () {
console.log('method1');
},
method2: function () {
console.log('method2');
}
};
var b = {};
b.borrow(['method1', 'method2']).from(a);
b.method1();
b.method2();