title: How to push JSON data in two dimensional array?
body: <p>I am trying to get a structure like</p>
  
  <pre><code>var tableData= [
    ['Hfbj'],
    ['Hygh'],
    [6],
    ['mayur'],
    [2563458952]
  ]
  </code></pre>
  
  <p>Here is my JSON data:</p>
  
  <pre><code>data:{
    "address"': "Hfbj"
    "id": 6
    "landmark": "Hygh"
    "name": "mayur"
    "phone": 2563458952
    "title": "aaa"
  }
  </code></pre>
  
  <p>I am using <a href="https://www.npmjs.com/package/react-native-table-component" rel="nofollow noreferrer">react-native-table-component</a> in which that type of structure needed. For that, I am doing the following but it showing <code>data.map is not function and undefined</code>.</p>
  
  <pre><code>let newdata = this.state.tableData[0].push(
    [responseJson.data.title],
    [responseJson.data.title]
  );
  
  this.setState({
    tableData: newdata
  });
  </code></pre>
  
  <p>How can I achieve it?</p>