<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [arraySymmetricDifference](./rc-js-util.arraysymmetricdifference.md)

## arraySymmetricDifference() function

Returns those items in A not in B, and those items in B not in A.

**Signature:**

```typescript
export declare function arraySymmetricDifference<TItem>(a: readonly TItem[], b: readonly TItem[], aSet?: ReadonlySet<TItem>, bSet?: ReadonlySet<TItem>): Set<TItem>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

a


</td><td>

readonly TItem\[\]


</td><td>


</td></tr>
<tr><td>

b


</td><td>

readonly TItem\[\]


</td><td>


</td></tr>
<tr><td>

aSet


</td><td>

ReadonlySet&lt;TItem&gt;


</td><td>

_(Optional)_


</td></tr>
<tr><td>

bSet


</td><td>

ReadonlySet&lt;TItem&gt;


</td><td>

_(Optional)_


</td></tr>
</tbody></table>
**Returns:**

Set&lt;TItem&gt;

## Remarks

See [arraySymmetricDifference()](./rc-js-util.arraysymmetricdifference.md)<!-- -->.

