SyntaxFix
Write A Post
Hire A Developer
Questions
Libraries like underscore and lodash have a utility method called intersection to find matches in arrays passed in. Take a look at: http://underscorejs.org/#intersection
intersection