1.0.0 • Published 9 years ago

assoc-promise v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

assoc-promise

Requires a Promise polyfill (e.g. require('es6-promise').polyfill()).

var passoc = require('assoc-promise');

passoc({
	foo: makePromise("foo"),
	bar: makePromise("bar"),
	baz: "baz"
}).then(function(res) {
	// object `res` contains same keys as the input object,
	// values are the resolved values.
}, function(err) {
	// called if any of the promises reject
});