title: JSON array splitting React JS
body: <p>I have a JSON array in my state and I want to use the other half of it. For example if the size of the JSON array is 10, I am interested in to access the later 5 values. How can I achieve that? I have tried many solutions but I always end up getting errors.
  I am working with React JS.
  So I was using map function but I am unable to fulfill my condition.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  data.map((item, index) =&gt; {</code></pre>
  </div>
  </div>
  </p>
  <p>I am unable to use reduce or filter I tried that also.</p>