intersect

intersect ( array reference , array toCompare ) : array

Returns intersection between 2 lists.

Example



list1=[1,2,3,4]
list2=[3,4,5,6]

console(intersect(list1,list2)) //[3, 4]


See also

arrayDifferences

Parameters

reference

List of elements.

toCompare

Another list of elements to compare with the first.