Home > rc-js-util > arraySymmetricDifference
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>;
Parameter | Type | Description |
---|---|---|
a | readonly TItem[] | |
b | readonly TItem[] | |
aSet | ReadonlySet<TItem> | (Optional) |
bSet | ReadonlySet<TItem> | (Optional) |
Returns:
Set<TItem>