code: function add(snapshot) {
      return Promise
        .resolve(mapFn(snapshot))
        .then(function(val) {
          data[snapshot.key()] = val;
        });
    }
docs: add a snapshot to data
  
  @param {DataSnapshot} snapshot
  @return {Promise}