rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
70 lines (33 loc) • 931 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [setSymmetricDifference](./rc-js-util.setsymmetricdifference.md)
## setSymmetricDifference() function
Returns those items in A not in B, and those items in B not in A.
**Signature:**
```typescript
export declare function setSymmetricDifference<TItem>(a: ReadonlySet<TItem>, b: ReadonlySet<TItem>): TItem[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
a
</td><td>
ReadonlySet<TItem>
</td><td>
</td></tr>
<tr><td>
b
</td><td>
ReadonlySet<TItem>
</td><td>
</td></tr>
</tbody></table>
**Returns:**
TItem\[\]
## Remarks
See [setSymmetricDifference()](./rc-js-util.setsymmetricdifference.md)<!-- -->.