fn-sequence
v1.0.2
Published
function sequence
Downloads
5
Readme
fn-sequence
Install
npm install fn-sequence
Usage
var sequence = require("fn-sequence");
sequence([
function (value, next) {
console.log(value); // 100
next();
},
function (value, next) {
next(null, value, "bar");
},
{
foo: function (value, next) {
next(null, "foo");
},
bar: function (value, next) {
next(null, "bar");
}
}
], 100, function (err, val) {
console.log(val); // "bar"
});