Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 458 Bytes

node-dank-amap

An asynchronous map function which can map over anything for node.

Similar feature set as node-dank-map

example

amap = require('dank-amap');

amap([5,2,4,5], function (key, val, next, emit, end) {
    if (val === 5) {
        return next();
    }
    else {
        return next(null, val);
    }
}, function (err, result) {
    console.log(result);
}, true);

See also test.js