code: function snapshotToHash(snap, idProp = "id") {
      const hash = snap.val() || {};
      Object.keys(hash).forEach(key => typeof hash[key] === "object"
          ? (hash[key][idProp] = key)
          : (hash[key] = { [idProp]: key, value: hash[key] }));
      return hash;
  }
docs: Converts a Firebase snapshot to JS object with both val() and key
  represented in the JS object
  
  @param snap the Firebase Snapshot
  @param idProp the property used to store the "id/key" of the record