Combines two array into a set (i.e. no duplicates) composed of those elements common to both arrays.
intersection([1,2,3,4], [7,6,5,4,3]); //=> [4, 3]
The array of elements found in both a and b.
a
b
Generated using TypeDoc
Combines two array into a set (i.e. no duplicates) composed of those elements common to both arrays.