I want to return an array of promise using Q.all(); like this:
return Q.all([
              list[0].getCssValue('height'),
              list[1].getCssValue('height'),
              ...,
              list[list.length-1]
              .getCssValue('height')
             ]);
I need to return all list in the array and I can get the length by array.length.
The question is that I can't
   for(var i = 0; i < list.length; i++)
to make the return items like
list[i].getCssValue('height'); 
So how should I do this?
 
     
    