title: Is it possible to map only a portion of an array? (Array.map())
body: <p>I am building a project using React.js as a front-end framework. On one particular page I am displaying a full data set to the user. I have an Array which contains this full data set. It is an array of JSON objects. In terms of presenting this data to the user, I currently have it displaying the whole data set by returning each item of data using Array.map().</p>
  
  <p>This is a step in the right direction, but now I need to display only a portion of the data-set, not the whole thing, I also want some control in terms of knowing how much of the total data set has been displayed, and how much of the data set is yet to be displayed. Basically I am building something like a "view more" button that loads more items of data to the user. </p>
  
  <p>Here is what I am using now where 'feed' represents my Array of JSON objects. (this displays the whole data set.)</p>
  
  <pre><code> return (
    &lt;div className={feedClass}&gt;
    {
      feed.map((item, index) =&gt; {
        return &lt;FeedItem key={index} data={item}/&gt;
      })
    }
    &lt;/div&gt;
  );
  </code></pre>
  
  <p>I am wondering if it is possible to use .map() on only a portion of the array without having to break up the array before hand? I know that a possible solution would be to hold the full data set, and break it off into portions, and then .map() those portions, but is there a way to .map() a portion of the array without having to break it up?</p>
  
  <p>Any and all feedback is appreciated. Thanks!</p>