Skip to content

entity/combine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

combine

combines two functions into one

Installing

npm install entity/combine

component install entity/combine

Example

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

API

combine(a, b)

Combines functions a and b.

License

MIT

About

combines two functions into one

Resources

Stars

Watchers

Forks

Packages

No packages published