find match value in two object

Solutions on MaxInterview for find match value in two object by the best coders in the world

showing results for - "find match value in two object"
Elijah
16 Jun 2018
1var currentRef = currentQuestions.map(function(item){
2     return item.Ref;
3});
4
5$scope.Questions = availableQuestions.filter(function(item){
6     return currentRef.indexOf(item.Ref) === -1;
7});