chain-function
chain a bunch of functions together into a single call
Last updated 7 years ago by monastic.panic .
MIT · Repository · Bugs · Original npm
$ cnpm install chain-function 
SYNC missed versions from official npm registry.

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"

Current Tags

  • 1.0.1                                ...           latest (7 years ago)

1 Versions

  • 1.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org