chain-function
v1.0.1
Published
chain a bunch of functions together into a single call
Downloads
1,520,486
Readme
chain-function
chain a bunch of functions
npm i chain-function
function foo() {
console.log('foo')
}
function baz() {
console.log('bar')
}
var foobar = chain(foo, bar)
foobar() // "bar" "foo"
//handles empty values just fine
foobar = chain(foo, null, bar, undefined)
foobar() // "bar" "foo"