Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
var a = [{"Id": 1, "Name": 'a'}, {"Id": 2, "Name": 'b'}, {"Id": 3, "Name": 'c'},{"Id": 4, "Name": 'd'},,{"Id": 5, "Name": 'j'}];
var b = [{"Id": 1, "Name": 'a'}, {"Id": 4, "Name": 'd'}, {"Id": 5, "Name": 'j'},{"Id": 9, "Name": 'i'}];

I need to remove duplicate in "a" by comparing "a" with "b" using underscore js



i need to check like a[0] to all b array then if a[0] is in b then a[0] to remove, and i dont want value from b

B is only for checking duplicate
Posted
Updated 6-Nov-14 3:23am
v4

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900