So I want to compare 2 arrays with each other to count the similarities that they have.
[ 401, 271, 259, 260, 342, 410 ]
[ 401, 12021, 923, 235, 342, 410 ]
The above arrays should output 3. Right now I have a forEach inside a forEach just going through each one individually to check the other array individually for the same number.