var arrayValues = [[2,3,5],[3,5]]
var commonArrayValues = _.intersection(arrayValues);
Currently it is working as,
_.intersection([[2,3,5],[3,5]])
Result: [2,3,5]
But it should work as, (i.e outer array should be removed)
_.intersection([2,3,5],[3,5])
Expected Result: [3,5]
Anyone kindly give me a proper solutions. Thank you in advance.