Last active
August 25, 2019 17:28
-
-
Save jotatoledo/1c9ff10defed5af65cc88b9418b1fc2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getUniques(): Hit[] { | |
const mergedHits = this.read().concat(this.previousData); | |
const hitsById = new Map(mergedHits.map(hit => [hit.id, hit]); | |
return [...mergedHitsById.values()]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment