title: Firebase Functions print an object to the console
body: <p>I have this code on the Firebase cloud using functions</p>
  
  <pre><code>peopleDataBase.orderByChild("mCalculateFaceSizeWidth")
                          .endAt(mCalculateFaceSizeWidth())
                          .limitToLast(1)
                          .on("child_added", function(snapshot) {
                         var  person = {
                                  "name":snapshot.val().name,
                                  "age":snapshot.val().age,
                                  "id":snapshot.val().id,
                                  "children":snapshot.val().children,
                                  "address":snapshot.val().address,
                                  "image":snapshot.val().image
                              }
  
                              if(key != snapshot.key){
                                  people += person;
                                  key = snapshot.key;
                                  console.log("The entire people list:",people);
                              }
  
                          });
  </code></pre>
  
  <p>I am trying to print the people object to the console, I have searched for an hour using JSON.stringify and String even $scope and other methods, nothing worked.
  In the log on the cloud I am getting</p>
  
  <pre><code>2017-07-11T07:55:54.593Z I status: The entire people list: [object Object]
  </code></pre>
  
  <p>Eventually I want to send the object back to the mobile device but I want to make sure I see the data inside.
  Ideas?</p>
  
  <p>Thanks
  Eran</p>