title: Mapping values from combineLatest to Array
body: <p>Having this:</p>
  
  <pre><code> Observable.combineLatest(localArray.map((i) =&gt; {
    return &lt;Observable that returns $value&gt; }))
    .map((statuses) =&gt; {
      return statuses.filter((status) =&gt; {
        return status.$value === CONDITION
      });
    }).subscribe((eligible: any[]) =&gt; {
  ...
  </code></pre>
  
  <p>Is it possible to map the results from the subscription back to the <code>localArray</code>? I'd like to know which <code>eligible</code> item belongs to which <code>localArray</code> entry...</p>
  
  <p>Thanks for the help.</p>
  
  <p><strong>I read somewhere that the order is preserved with <code>combineLatest</code>. However, mapping directly to the index with a <code>forEach</code> will not work since the <code>eligible</code> results might return different length than the <code>localArray</code> if the condition(s) are met.</strong></p>
  
  <p><em>I can always remove <code>.map()</code> and do the filtering in the <code>subscribe</code> block which will enable me to loop over the <code>localArray</code> and update with the <code>eligible</code> data directly as such: <code>localArray.forEach((ai, i) =&gt; { ai.eligible = eligible[i] })</code> for example...</em> </p>