i have a code that produce this variable
let matches = [
[1,3,5,8,10],
[2,3,5,7,9],
[1,2,3,5,9]
]
i wanted to find which of these value that appeared on all of these nested array. So in this example, the expected answer would be [3,5]
but i'm stumped on how should the algorithm work
Would be very grateful if someone can help me with this. Thanks in advance!