js-util

Home > rc-js-util > arraySymmetricDifference

arraySymmetricDifference() function

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

Signature:

export declare function arraySymmetricDifference<TItem>(a: readonly TItem[], b: readonly TItem[], aSet?: ReadonlySet<TItem>, bSet?: ReadonlySet<TItem>): Set<TItem>;

Parameters

Parameter Type Description
a readonly TItem[]  
b readonly TItem[]  
aSet ReadonlySet<TItem> (Optional)
bSet ReadonlySet<TItem> (Optional)

Returns:

Set<TItem>

Remarks

See arraySymmetricDifference().