|
|
3 lat temu | |
|---|---|---|
| .. | ||
| .gitattributes | 3 lat temu | |
| LICENSE.md | 3 lat temu | |
| README.md | 3 lat temu | |
| index.js | 3 lat temu | |
| package.json | 3 lat temu | |
| test.js | 3 lat temu | |
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"