Get the intersection of list of array

Certified Senior Developer

Hi All,

Can you please help me how to get the intersection of  Lists of array (number array). So I have a list of  number array which I construct in the interface. I need to only pick the common element  present in all the number array . I tried with loop and reduce function but not getting the actual result .

It has been achieved by taking an array element and loop over other other array and check if present in all array then keep it or remove it which I feel is very dirty way of doing . 

Any suggestion would be appreciated.

Thanks 

Manish

  Discussion posts and replies are publicly visible