delegate-proxy
Super easy delegating method and accessor, using es6 Proxies with less than 15 lines of code.
Installation
$ npm install delegate-proxy
Examples
const delegateProxy = const bar = n: 1 { thisn += i } const foo = thisn = n | 0 { thisn -= i } const d = bar // { n: 1, end: [Function: end] }foo // { set: [Function: set], sub: [Function: sub] }d // {} dn // => 1ddn // => 2 ddn // => 0 ddn // 1 dn = 233dn // 233