How Can You Find out Intersection of 2 Arrays in JavaScript and Create a New Array With Shared Elements?
For Eg, If array1 = 1,2,3,4,5 array2 = 3,4,8,10
Then the result should be 3, 4
For Eg, If array1 = 1,2,3,4,5 array2 = 3,4,8,10
Then the result should be 3, 4
No answers yet. Be the first to answer this question!