title: Push values without keys to javascript array
body: <p>In react-native I'm trying to push values from the code below to an array without the keys because the component (react-native-table-component) I'm using will only accept an array of strings or numbers and not objects with key value pairs.  I'm so close to figuring it out but I'm getting stuck!  </p>
  
  <p><strong>Structure of response.data</strong></p>
  
  <pre><code>response.data = {
    "Hours": 234,
    "Minutes": 343,
    "Days": 23,
    "Months": 4
  }
  </code></pre>
  
  <p><strong>Code to receive response.data and push to array</strong></p>
  
  <pre><code>  toScreenTwo = async () =&gt; {
      const { isLoggedIn, user} = this.state;
      try {
        if (!isLoggedIn) {                 
          const response = await http.post('/v1/signup/user', {
            user,
          })
          for (var value in response.data) {
            this.state.tableData2.push(value);
          }
          console.log('response', this.state.tableData2);
        }
  
  
  
        await this.setState({
          modalVisible: false,
          friendsModalVisible: false
        });
      } catch(err) {
        console.log("error ", err);
      }
  }
  </code></pre>
  
  <p><strong>Current Code Result</strong></p>
  
  <p>The code above, is currently push only the keys to the array tableData2 when I want to push only the values to the array tableData2</p>
  
  <p><strong>Array format that react-native-table-component accepts</strong></p>
  
  <pre><code> tableData: [
          ['1', '2', '3'],
          ['a', 'b', 'c'],
          ['1', '2', '3'],
          ['a', 'b', 'c']
        ]
  </code></pre>
  
  <p>It seems that react-native-table-component needs to be passed an array with at least one array nested within it</p>
  
  <p><strong>Errors</strong></p>
  
  <p><a href="https://i.stack.imgur.com/xlliY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xlliY.png" alt="Error Message"></a></p>
  
  <p>If anyone has any suggestions that would be great!</p>