js-util

Home > rc-js-util > setSymmetricDifference

setSymmetricDifference() function

Returns those items in A not in B, and those items in B not in A.

Signature:

export declare function setSymmetricDifference<TItem>(a: ReadonlySet<TItem>, b: ReadonlySet<TItem>): TItem[];

Parameters

Parameter Type Description
a ReadonlySet<TItem>  
b ReadonlySet<TItem>  

Returns:

TItem[]

Remarks

See setSymmetricDifference().