title: TypeError: data.map is not a function - React Native
body: <p>This is the <em>data</em>:</p>
  <pre><code>WebSQLRows {
    &quot;_array&quot;: Array [
      Object {
        &quot;id&quot;: 172,
        &quot;user_na&quot;: &quot;Yfug&quot;,
      },
      Object {
        &quot;id&quot;: 173,
        &quot;user_na&quot;: &quot;Ihvb&quot;,
      },
      Object {
        &quot;id&quot;: 174,
        &quot;user_na&quot;: &quot;Hfugu&quot;,
      },
      Object {
        &quot;id&quot;: 175,
        &quot;user_na&quot;: &quot;Ffh&quot;,
      },
      Object {
        &quot;id&quot;: 176,
        &quot;user_na&quot;: &quot;Hfhg&quot;,
      },
      Object {
        &quot;id&quot;: 177,
        &quot;user_na&quot;: &quot;Gcug&quot;,
      },
    ],
    &quot;length&quot;: 6,
  }
  </code></pre>
  <p>This is the code I've used to get it:</p>
  <pre><code>data.map((item) =&gt; {
      console.log(item.id);
      console.log(item.user_na);
  });
  </code></pre>
  <p>Error:
  <code>TypeError: data.map is not a function.</code></p>
  <p>I want an output that only consists of the id, and <code>user_na</code>. <br>
  I'm learning to use SQLite with React Native, and SQLite SELECT query gives me this.</p>
  <p>SQLite Select:</p>
  <pre><code>const getData = () =&gt; {
      global.data = data;
  
      db.transaction((tx) =&gt; {
        tx.executeSql(&quot;SELECT * FROM users&quot;, [], (tx, results) =&gt; {
          var len = results.rows.length;
  
          if (len == 0) {
            numFunc(&quot;The database is empty&quot;);
          } else {
            numFunc(len.toString());
            dataEntry(results.rows);
          }
        });
      });
      console.log(data);
    };
  </code></pre>