JSFiddle - React, Tailwind, and code Playground
by Sir_Pepe
HTML
<script src="https://rawgit.com/kriskowal/q/v1/q.js"></script>
JavaScript
// http://jsfiddle.net/Sir_Pepe/dLnr896u/
var deferred = Q.defer()
deferred.resolve([1, 2, 3])
var promise = deferred.promise;
promise.then(function(x){
console.log(x); // > [1, 2, 3] - OK!
});
Q.all([promise]).then(function(x){
console.log(x); // > [ [1, 2, 3] ] - OK!
});
Q.all([promise, promise]).then(function(x){
console.log(x); // > [ [1, 2, 3], [1, 2, 3] ] - OK!
});