title: Trying to get data from storage but it returns empty array
body: <p>I have data stored using custom keys. I want to return all data that starts with the id <code>KEY-</code> so I loop over all the data and storage and push the ones that match into an array. I can see that the data is being pushed into <code>data[]</code>
  but when I call <code>getData()</code> in my component it returns an empty array. What am I doing wrong?</p>
  
  <p>storage.ts</p>
  
  <pre><code>getData(): any {
    this.storage.ready().then(() =&gt;
    {
      let data = [];
      this.storage.forEach((value, key, index) =&gt;
      {
        if (value.id.startsWith("KEY-")) {
          data.push(value);
          console.log(data);
        }
      });
      return data;
    });
  }
  </code></pre>
  
  <p>component.ts</p>
  
  <pre><code>ionViewDidLoad() {
      this.data = this.storage.geData(); 
  }
  </code></pre>
  
  <p>I've also tried this way</p>
  
  <pre><code>ionViewDidLoad() {
      this.storage.getData().then(data =&gt; console.log(data));
   }
  </code></pre>