title: forEach is not a function Ionic 2
body: <p>I'm receiving this error even though this.toilets is full of objects</p>
  
  <p><a href="https://i.stack.imgur.com/vxKIi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vxKIi.png" alt="enter image description here"></a></p>
  
  <p>The log shows firstly this.location, then this.toilets which is full of objects as displayed.</p>
  
  <pre><code>this.loadHomeData().then(data =&gt; {
                  this.toilets = data;
                  console.log(this.toilets);
  
              });
  </code></pre>
  
  <hr>
  
  <pre><code>loadHomeData() {
          return new Promise(resolve =&gt; {
              this.http.get('http://url-to-my-server/' + this.location.coords.latitude + '/' + this.location.coords.longitude)
                  .map(res =&gt; res.json())
                  .subscribe(data =&gt; {
                      this.data = data;
                      resolve(this.data);
                  });
          });
      }
  </code></pre>
  
  <hr>
  
  <pre><code>this.toilets.forEach((toilet) =&gt; {
                  console.log(toilet);
             });
  </code></pre>