title: i want to make temp value and store array and display it in screen in react js
body: <p><strong>code</strong></p>
  <pre><code>function getPostData(Player, IP, Port, channelName) {
      //console.log(&quot;insideFunction Row1&quot;+Player); 
      var data = {
        PlayerName: Player,
        ChannelName: channelName,
        Port: Port,
        IpAddress: IP
      }
      axios({
        method: 'post',
        url: 'http://localhost:9763/api/getPlayerStatus',
        data,
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json',
        },
        auth: {
          username: 'admin',
          password: 'password'
        }
      }).then(response =&gt; {
        //var pushValue;    
        tempObj = [response.data];
        // console.log(&quot;tempObj&quot;, tempObj);
        for ( var i = 0; i &lt;= tempObj.length; i++) {
          //console.log(&quot;forLoop&quot;, tempObj[i]);
          temp.push(tempObj[i]);
        }
         console.log(&quot;temp&quot;, temp);
        Postdata(temp);
  
      }).catch(error =&gt; {
        console.log(&quot;Error In Post Data&quot;, error);
      });
    }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/YqmX0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YqmX0.png" alt="Console Imge" /></a></p>
  <p>I want to remove undefined for FORLOOP and want to  display 1 temp value in console so that i can easily map the value in table row
  Please help me Provide some help/Code<br />
  I don't  know why 4 time temp data appear</p>
  <p>i just want display this type of arrayofObject no repeat no undefined  value
  <a href="https://i.stack.imgur.com/7aLsC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7aLsC.png" alt="display this temp " /></a></p>
  <p>I have this type of data
  {
  &quot;Status&quot;: 1000,
  &quot;Properties&quot;: {
  &quot;ClipName&quot;: &quot;Clip1&quot;,
  &quot;Upcounter&quot;: &quot;15:33:44:33&quot;,
  &quot;DownCounter&quot;: &quot;16:33:44:33&quot;,
  &quot;ChannelName&quot;: &quot;Channel1&quot;,
  &quot;StartTimeCode&quot;: &quot;00:00:00:00&quot;,
  &quot;PlayerName&quot;: &quot;Vtr1&quot;,
  &quot;Duration&quot;: &quot;12:00:00:01&quot;
  }
  }
  {
  &quot;Status&quot;: 1000,
  &quot;Properties&quot;: {
  &quot;ClipName&quot;: &quot;Clip3&quot;,
  &quot;Upcounter&quot;: &quot;12:33:44:33&quot;,
  &quot;DownCounter&quot;: &quot;12:33:44:33&quot;,
  &quot;ChannelName&quot;: &quot;Channel3&quot;,
  &quot;StartTimeCode&quot;: &quot;00:00:00:00&quot;,
  &quot;PlayerName&quot;: &quot;Vtr3&quot;,
  &quot;Duration&quot;: &quot;12:00:00:01&quot;
  }
  }</p>