I have two arrays:
array1 = [{Name: 'abc', ID: 23},{Name:'xyz', ID: 10},{Name:'def', ID: 12}];
array2 = [10,23];
Resultant array should be part of array 1 whose ID intersects with contents of array2.
Here, the result would be result = [{Name: 'abc', ID: 23},{Name: 'xyz', ID:10}]
;
Any ideas how I could achieve this using underscore js?