arrayDifferences

arrayDifferences ( array reference , array toCompare , boolean[default:true] _mirror ) : array

Returns differences between 2 lists.

Example



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

console(arrayDifferences(list1,list2)) //[1, 2, 5, 6]
console(arrayDifferences(list1,list2,false)) //[5, 6]


See also

intersect

Parameters

reference

List of elements.

toCompare

Another list of elements to compare with the first.

_mirror (optional)

If true, the difference between the reference and toCompare is returned AND the difference toCompare and reference. Else it is just the difference between the reference and toCompare.