This question already has an answer here:
I have two arrays filled with strings and am hoping to identify the matching strings in both arrays. Eg.
var ArrayOne = ["Dog", "Cat", "Chicken"]
var Array Two = ["Dog", "Elephant", "Chicken", "Sheep"]
I am wanting the outcome to be
["Dog", "Chicken"]
Thanks in advance