React native, extracting data from an object
<p>I have this method which queries the database. The query is working and I would like to use the results from the query to do other stuff with it. Problem is, I can't use the data because it is in an object file. </p>

<pre><code> EventListener() {
      this.store.db.executeSql('SELECT id, event FROM eventi WHERE status = "new"', null,
      (resultset) =&gt; {
        console.log(resultset)
        alert(resultset)
      }, this.NewEventerror)
  }
</code></pre>

<p>How to get it out? I've tried <code>JSON.stringify(resultset)</code>, but the alert and the <code>console.log</code> doesn't pop. 
Any ideas?</p>