ImmutableJS: merge two list of objects, without duplicating them
问题 Supposing I have the below: var allFoods = Immutable.List(); var frenchFood = Immutable.List([ { 'type': 'french fries', 'price': 3 }, { 'type': 'petit gateau', 'price': 40 }, { 'type': 'croissant', 'price': 20 }, ]); var fastFood = Immutable.List([ { 'type': 'cheeseburger', 'price': 5 }, { 'type': 'vegan burger', 'price': 20 }, { 'type': 'french fries', 'price': 3 } ]); I want to merge both lists, in a way that I also remove dupes (in this case, french fries ), so the expected result would