1.0.2 • Published 9 years ago

fn-sequence v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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"
});