I have an set of Arrays. The number of Arrays is dynamic, it could be one, could be 100. In this example it's 3:
arr = [[1,2,3,4], [2,4], [2,3,4]]
What I need as result is to find same (intersecting) value(s) from all arrays. So result should be:
#=> [2,4]
How it could be done a proper way?
arris dynamic as I mentioned before. It could be [[1] [1,2,3,4]] or like it the example above.