UNPKG

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.

102 lines (47 loc) 1.21 kB
<!-- 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)<!-- -->.