Beispiel #1
0
// TODO: fix this method: it only works because notables are requested
// (and hopefully returned) first
function combineObservations(observations, newObservations) {
  let combined = observations.concat(newObservations)
  let grouped = groupBy(x => x.obsID)(combined)
  // TODO: need to reduce here
  let squashed = values(grouped).map(x => x[0])
  return squashed
}
Beispiel #2
0
export const getAllGuilds = (state) => values(state.data.guilds)