<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [DirtyCheckedUniqueCollection](./rc-js-util.dirtycheckeduniquecollection.md)

## DirtyCheckedUniqueCollection class

Provides a unique array with O(1) add &amp; remove, with dirty checking on `getArray`<!-- -->.

**Signature:**

```typescript
export declare class DirtyCheckedUniqueCollection<TItem> implements IDirtyCheckedUniqueCollection<TItem>, ISetLike<TItem> 
```
**Implements:** [IDirtyCheckedUniqueCollection](./rc-js-util.idirtycheckeduniquecollection.md)<!-- -->&lt;TItem&gt;, [ISetLike](./rc-js-util.isetlike.md)<!-- -->&lt;TItem&gt;

## Constructors

<table><thead><tr><th>

Constructor


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[(constructor)(itemsToCopy)](./rc-js-util.dirtycheckeduniquecollection._constructor_.md)


</td><td>


</td><td>

Constructs a new instance of the `DirtyCheckedUniqueCollection` class


</td></tr>
</tbody></table>

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[isDirty](./rc-js-util.dirtycheckeduniquecollection.isdirty.md)


</td><td>


</td><td>

boolean


</td><td>


</td></tr>
<tr><td>

[size](./rc-js-util.dirtycheckeduniquecollection.size.md)


</td><td>

`readonly`


</td><td>

number


</td><td>


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[add(item)](./rc-js-util.dirtycheckeduniquecollection.add.md)


</td><td>


</td><td>


</td></tr>
<tr><td>

[clear()](./rc-js-util.dirtycheckeduniquecollection.clear.md)


</td><td>


</td><td>


</td></tr>
<tr><td>

[delete(item)](./rc-js-util.dirtycheckeduniquecollection.delete.md)


</td><td>


</td><td>


</td></tr>
<tr><td>

[getArray()](./rc-js-util.dirtycheckeduniquecollection.getarray.md)


</td><td>


</td><td>


</td></tr>
<tr><td>

[getSet()](./rc-js-util.dirtycheckeduniquecollection.getset.md)


</td><td>


</td><td>


</td></tr>
<tr><td>

[has(item)](./rc-js-util.dirtycheckeduniquecollection.has.md)


</td><td>


</td><td>


</td></tr>
<tr><td>

[mapInitializeAdd(map, key, value)](./rc-js-util.dirtycheckeduniquecollection.mapinitializeadd.md)


</td><td>

`static`


</td><td>


</td></tr>
<tr><td>

[mapInitializeAdd(map, key, value)](./rc-js-util.dirtycheckeduniquecollection.mapinitializeadd_1.md)


</td><td>

`static`


</td><td>


</td></tr>
<tr><td>

[reportingAdd(item)](./rc-js-util.dirtycheckeduniquecollection.reportingadd.md)


</td><td>


</td><td>


</td></tr>
</tbody></table>
