So after searching the interwebz for a few hours I have not found the solution I am looking for.
I have two arrays that contain game objects with a lot of information inside. (e.g. title, slug, thumbnail, summary, genre, release date...).
The Array 1 is a collection of objects that match user's interests specified during the registration.
The Array 2 is a collection of objects that match purchased games of similar users. (Similar users are those that share common interests)
Problem: It is possible, and what is happening in my case, there are two identical games - the game in Array 1 is also in Array 2. In the first array the game is there because it matches user's interests. In the second array the game is there because a similar user has bought that game.
Question: Underscore.js has a nice little function union() http://underscorejs.org/#union that gives you a union of two arrays, but it does not work with an array of objects, only on primitive values. How could I make it work give me a union of array of objects?