Projektstart
This commit is contained in:
20
backend/node_modules/fastfall/example.js
generated
vendored
Normal file
20
backend/node_modules/fastfall/example.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict'
|
||||
|
||||
var fall = require('./')()
|
||||
|
||||
fall([
|
||||
function a (cb) {
|
||||
console.log('called a')
|
||||
cb(null, 'a')
|
||||
},
|
||||
function b (a, cb) {
|
||||
console.log('called b with:', a)
|
||||
cb(null, 'a', 'b')
|
||||
},
|
||||
function c (a, b, cb) {
|
||||
console.log('called c with:', a, b)
|
||||
cb(null, 'a', 'b', 'c')
|
||||
}
|
||||
], function result (err, a, b, c) {
|
||||
console.log('result arguments', err, a, b, c)
|
||||
})
|
||||
Reference in New Issue
Block a user