WIP - add extractor, generate snippet_data
This commit is contained in:
25
node_modules/chain-function/README.md
generated
vendored
Normal file
25
node_modules/chain-function/README.md
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
# chain-function
|
||||
chain a bunch of functions
|
||||
|
||||
```sh
|
||||
npm i chain-function
|
||||
```
|
||||
|
||||
```js
|
||||
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"
|
||||
```
|
||||
Reference in New Issue
Block a user