title: Looping around a certain number of times
body: <p>I am trying to make this code only loop around 3 times as I do not need the 4th value. How can I do this?</p>
  <pre><code>{this.props.league.prizes &amp;&amp; this.props.league.prizes.length &gt; 0 ?
                              &lt;View style={styles.section}&gt;
                                  {this.props.league.prizes.map((p, i) =&gt; (
                                      &lt;View key={Math.random().toString(36).substr(2, 5)} style={[styles.sectionPart, { borderRightWidth: 1 }]}&gt;
                                      &lt;Text style={styles.label}&gt;{this.getPositionString(i + 1)} Place&lt;/Text&gt;
                                          &lt;Text style={styles.prizeAmount}&gt;{places[i]}&lt;/Text&gt;
                                      &lt;/View&gt;
                                  ))}
                              &lt;/View&gt; : null}
  </code></pre>