0

I have an array of items like so: ["Steel", "in", "America", "Iron"] and another array: ["Steel", "Iron", "Copper"] that I would like compare array the first array to.

I would like to return an array of items that represent a match between the two arrays, in this case, ["Steel", "Iron"]

What is the best method to accomplish this task?

JCHASE11
  • 3,901
  • 19
  • 69
  • 132
  • Isn't this same as [this](http://stackoverflow.com/questions/1187518/javascript-array-difference) – MikeVelazco Feb 04 '16 at 19:52
  • thanks, yes, that is it. – JCHASE11 Feb 04 '16 at 19:53
  • @MikeVelazco: That's the opposite of his desired result, though there are many, many duplicates of this question that one can easily find if one takes just a minute to search. –  Feb 04 '16 at 19:56

0 Answers0