borrow

0.0.3 • Public • Published

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']).apply(a).from(a).thanks();

b.method1();
b.method2();

Readme

Keywords

none

Package Sidebar

Install

npm i borrow

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • poying