combines two functions into one
npm install entity/combine
component install entity/combine
var combine = require('combine');
var s = '';
function a(x){ s += x + 'a'; }
function b(x){ s += x + 'b'; }
var c = combine(a, b);
c('foo');
console.log(s); // => fooafoob
Combines functions a
and b
.
MIT