0.0.3 • Published 10 years ago

eqstra v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

Extra functional methods to Q promises

var Qe = require("eqstra");

Map

Qe.map(1, 2, 3, function (num) { return Q().then(apiCall(num)); }) .then(function (list) { doSomethingWhenFinished(); });

FlatMap

Qe.flatMap(1, 2, 3, function (num) { return Q() .then(apiCall(num)) // "a", "b", "c" }) .then(function (list) { doSomethingWhenFinished(); // "a", "a", "b", "a", "b", "c" });

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago