You could Ramdajs to find intersection of two arrays as follows
const Array1 = ["item1", "item2", "item3", "item4", "item5"];
const Array2 = ["item2", "item5"];
const res = R.intersection(Array1, Array2);
console.log(res);
here is the code repel
The same could be achieved using lodash
const Array1 = ["item1", "item2", "item3", "item4", "item5"];
const Array2 = ["item2", "item5"];
const res = _.intersection(Array1, Array2)
console.log(res);
here is the jsfiddle for lodash.
or you could use the includes method of the array to do the same
const Array1 = ["item1", "item2", "item3", "item4", "item5"];
const Array2 = ["item2", "item5"];
const res = Array1.filter(curr=>Array2.includes(curr));
console.log(res);
"item5"? Can the same string potentially occur more than once inArray1? What have you tried so far? I'm thinking a simpleforloop overArray2with a call toArray1.indexOf()would get the job done easily enough. If your question is "Please code the whole thing for me" what you really want is a JS tutorial - there are links to some on the SO JS info page.