title: Need to find the way to slice this array to show only n customers
body: <p>So , i basically want to show only 5 customer per page, i'll later add a pagination bar but at the moment i want to show only 5 customer, i have tried to slice after the map function, but im kinda new to react and redux and im not sure if that's the way.</p>
  
  <pre><code>const Setting = ({
      itemFromPage,
      BBDDCustomer
  }) =&gt; {
     console.log({BBDDCustomer});
     const renderRows = BBDDCustomer.data.map((customer, customerIndex) =&gt; { //how to slice this array 
     return (
        &lt;tr key={customerIndex}&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].name}&lt;/td&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].address}&lt;/td&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].postalCode}&lt;/td&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].city}&lt;/td&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].country}&lt;/td&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].telephone}&lt;/td&gt;
            &lt;td&gt;{BBDDCustomer.data[customerIndex].email}&lt;/td&gt;
            &lt;td&gt;&lt;input type="checkbox" id="customerIndex" value="mod"/&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="checkbox" id="customerIndex" value="Del"/&gt;&lt;/td&gt;
         &lt;/tr&gt;
      );
   });
   return (
    &lt;div&gt;
      &lt;Table&gt;         
     &lt;/div&gt;
    );
  };
  </code></pre>
  
  <p>This is the format file where the customer are:</p>
  
  <pre><code>    const BBDDCustomer = {
            ui_labels: {
              name: 'Name',
              address: 'address',
              postalCode: 'Postal Code',
              city: 'City',
              country: 'Country',
              telephone: 'Telephone',
              email: 'Email',
              modified: 'Modified',
              delete: 'Delete'
            },
        data: [
          {
            name: 'n1',
            address: 'a1',
            postalCode: 'PC 1',
            city: 'c 1',
            country: 'cou 1',
            telephone: 'tel 1',
            email: 'em 1'
          }
      }
  </code></pre>