extend-functions
Extends a target objects with functions from the source object, keeping the context of the source object.
Installation
npm install --save extend-functions
Usage
var extendFunctions = ; var source = msg: 'Hello world!' { console; };var target = {}; ; target; /* Will print `Hello world!` */
License
MIT