---
title: "Palette | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Palette/"
---

# Palette

> - [`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection)\<[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)\>

## Classes

### Palette

#### Extends

#### Constructors

##### Constructor

```ts
new Palette(items?): Palette;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `items?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

[`Palette`](#palette)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`constructor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#constructor)

##### Constructor

```ts
new Palette(items?): Palette;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `items?` | [`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection)\<[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)\> |

###### Returns

[`Palette`](#palette)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`constructor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#constructor)

##### Constructor

```ts
new Palette(...items): Palette;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`items` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

[`Palette`](#palette)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`constructor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#constructor)

#### Accessors

##### empty

###### Get Signature

```ts
get empty(): boolean;
```

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`empty`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#empty)

##### length

###### Get Signature

```ts
get length(): number;
```

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`length`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#length)

#### Methods

##### \[iterator\]()

```ts
iterator: ArrayIterator<Swatch>;
```

###### Returns

`ArrayIterator`\<[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`[iterator]`](Collection.md#iterator)

##### add()

```ts
add(...items): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`items` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`add`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#add)

##### addRange()

```ts
addRange(items): void;
```

Adds the specified items to the end of the collection.

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `items` | `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`addRange`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#addrange)

##### aggregate()

###### Call Signature

```ts
aggregate(func): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `func` | (`prev`, `current`) => [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`aggregate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#aggregate)

###### Call Signature

```ts
aggregate<TAccumulate>(seed, func): TAccumulate;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TAccumulate` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `seed` | `TAccumulate` |
| `func` | (`prev`, `current`) => `TAccumulate` |

###### Returns

`TAccumulate`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`aggregate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#aggregate)

###### Call Signature

```ts
aggregate<TAccumulate, TResult>(
   seed, 
   func, 
   resultSelector): TResult;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TAccumulate` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `seed` | `TAccumulate` |
| `func` | (`prev`, `current`) => `TAccumulate` |
| `resultSelector` | (`last`) => `TResult` |

###### Returns

`TResult`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`aggregate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#aggregate)

##### all()

```ts
all(predicate): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate` | (`element`) => `boolean` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`all`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#all)

##### alternate()

###### Call Signature

```ts
alternate(alternateValue): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `alternateValue` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`alternate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#alternate)

###### Call Signature

```ts
alternate(alternateSequence): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `alternateSequence` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `alternateSequence.length` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`alternate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#alternate)

###### Call Signature

```ts
alternate(alternateSequence): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `alternateSequence` | `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`alternate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#alternate)

###### Call Signature

```ts
alternate(alternateSequence): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `alternateSequence` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`alternate`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#alternate)

##### any()

```ts
any(predicate?): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | (`element`) => `boolean` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`any`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#any)

##### asEnumerable()

```ts
asEnumerable(): IEnumerable<T>;
```

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`asEnumerable`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#asenumerable)

##### average()

```ts
average(selector?): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector?` | (`element`) => `number` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`average`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#average)

##### buffer()

```ts
buffer(count): IEnumerable<T[]>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `count` | `number` |

###### Returns

`IEnumerable`\<`T`[]\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`buffer`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#buffer)

##### cast()

```ts
cast<TResult>(): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`cast`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#cast)

##### catchError()

```ts
catchError(handler): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `handler` | (`exception`) => `void` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`catchError`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#catcherror)

##### choose()

```ts
choose(selector): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector` | (`element`, `index`) => [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`choose`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#choose)

##### clear()

```ts
clear(): void;
```

Removes all items from the collection

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`clear`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#clear)

##### collectionChanged()

```ts
collectionChanged(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | [`AnyFunction`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/AnyFunction.md#anyfunction) |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`collectionChanged`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collectionchanged)

##### collectionChanged()

```ts
collectionChanged(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | [`AnyFunction`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/AnyFunction.md#anyfunction) |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`collectionChanged`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collectionchanged-1)

##### concat()

###### Call Signature

```ts
concat(...sequences): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`sequences` | `IEnumerable`\<`T`\>[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`concat`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#concat)

###### Call Signature

```ts
concat(...sequences): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`sequences` | `object`[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`concat`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#concat)

###### Call Signature

```ts
concat(...sequences): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`sequences` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`concat`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#concat)

##### constructor()

```ts
constructor(getEnumerator): never;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `getEnumerator` | () => `IEnumerator`\<`T`\> |

###### Returns

`never`

###### Inherited from

```ts
Collection.constructor
```

##### contains()

###### Call Signature

```ts
contains(value): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`contains`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#contains)

###### Call Signature

```ts
contains<TCompare>(value, compareSelector?): boolean;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |
| `compareSelector?` | (`element`) => `TCompare` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`contains`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#contains)

##### count()

```ts
count(predicate?): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | (`element`, `index`) => `boolean` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`count`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#count)

##### defaultIfEmpty()

```ts
defaultIfEmpty(defaultValue?): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `defaultValue?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`defaultIfEmpty`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#defaultifempty)

##### distinct()

###### Call Signature

```ts
distinct(): IEnumerable<T>;
```

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`distinct`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#distinct)

###### Call Signature

```ts
distinct<TCompare>(compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`distinct`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#distinct)

##### distinctUntilChanged()

###### Call Signature

```ts
distinctUntilChanged(): IEnumerable<T>;
```

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`distinctUntilChanged`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#distinctuntilchanged)

###### Call Signature

```ts
distinctUntilChanged<TCompare>(compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`distinctUntilChanged`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#distinctuntilchanged)

##### doAction()

###### Call Signature

```ts
doAction(action): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `action` | (`element`, `index`) => `void` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`doAction`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#doaction)

###### Call Signature

```ts
doAction(action): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `action` | (`element`, `index`) => `boolean` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`doAction`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#doaction)

##### elementAt()

```ts
elementAt(index): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`elementAt`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#elementat)

##### elementAtOrDefault()

```ts
elementAtOrDefault(index, defaultValue?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |
| `defaultValue?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`elementAtOrDefault`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#elementatordefault)

##### except()

###### Call Signature

```ts
except(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`except`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#except)

###### Call Signature

```ts
except<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`except`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#except)

###### Call Signature

```ts
except(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`except`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#except)

###### Call Signature

```ts
except<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`except`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#except)

###### Call Signature

```ts
except(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`except`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#except)

###### Call Signature

```ts
except<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`except`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#except)

##### finallyAction()

```ts
finallyAction(finallyAction): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `finallyAction` | () => `void` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`finallyAction`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#finallyaction)

##### first()

```ts
first(predicate?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | (`element`, `index`) => `boolean` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`first`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#first)

##### firstOrDefault()

```ts
firstOrDefault(predicate?, defaultValue?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) \| ((`element`, `index`) => `boolean`) |
| `defaultValue?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`firstOrDefault`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#firstordefault)

##### flatten()

```ts
flatten(): IEnumerable<any>;
```

###### Returns

`IEnumerable`\<`any`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`flatten`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#flatten)

##### force()

```ts
force(): void;
```

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`force`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#force)

##### forEach()

###### Call Signature

```ts
forEach(action): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `action` | (`element`, `index`) => `void` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`forEach`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#foreach)

###### Call Signature

```ts
forEach(action): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `action` | (`element`, `index`) => `boolean` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`forEach`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#foreach)

##### get()

```ts
get(index): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`get`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#get)

##### getEnumerator()

```ts
getEnumerator(): IEnumerator<T>;
```

###### Returns

`IEnumerator`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`getEnumerator`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#getenumerator)

##### getItem()

```ts
getItem(index): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `any` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`getItem`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#getitem)

##### groupBy()

###### Call Signature

```ts
groupBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, T>>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

`IEnumerable`\<`IGrouping`\<`TKey`, `T`\>\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupby)

###### Call Signature

```ts
groupBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |

###### Returns

`IEnumerable`\<`IGrouping`\<`TKey`, `TElement`\>\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupby)

###### Call Signature

```ts
groupBy<TKey, TElement, TResult>(
   keySelector, 
   elementSelector, 
resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |
| `resultSelector` | (`key`, `element`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupby)

###### Call Signature

```ts
groupBy<TKey, TElement, TResult, TCompare>(
   keySelector, 
   elementSelector, 
   resultSelector, 
compareSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |
| `TResult` |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |
| `resultSelector` | (`key`, `element`) => `TResult` |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupby)

##### groupJoin()

###### Call Signature

```ts
groupJoin<TInner, TKey, TResult>(
   inner, 
   outerKeySelector, 
   innerKeySelector, 
   resultSelector, 
compareSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TInner` |
| `TKey` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `inner` | `IEnumerable`\<`TInner`\> |
| `outerKeySelector` | (`outer`) => `TKey` |
| `innerKeySelector` | (`inner`) => `TKey` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |
| `compareSelector?` | (`obj`) => `TKey` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupJoin`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupjoin)

###### Call Signature

```ts
groupJoin<TInner, TKey, TResult>(
   inner, 
   outerKeySelector, 
   innerKeySelector, 
   resultSelector, 
compareSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TInner` |
| `TKey` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `inner` | \{ \[`x`: `number`\]: `TInner`; `length`: `number`; \} |
| `inner.length` | `number` |
| `outerKeySelector` | (`outer`) => `TKey` |
| `innerKeySelector` | (`inner`) => `TKey` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |
| `compareSelector?` | (`obj`) => `TKey` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupJoin`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupjoin)

###### Call Signature

```ts
groupJoin<TInner, TKey, TResult>(
   inner, 
   outerKeySelector, 
   innerKeySelector, 
   resultSelector, 
compareSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TInner` |
| `TKey` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `inner` | `TInner`[] |
| `outerKeySelector` | (`outer`) => `TKey` |
| `innerKeySelector` | (`inner`) => `TKey` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |
| `compareSelector?` | (`obj`) => `TKey` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`groupJoin`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#groupjoin)

##### indexOf()

###### Call Signature

```ts
indexOf(item): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `item` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`indexOf`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#indexof)

###### Call Signature

```ts
indexOf(predicate): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate` | (`element`, `index`) => `boolean` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`indexOf`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#indexof)

##### insert()

###### Call Signature

```ts
insert(index, second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |
| `second` | `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`insert`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#insert)

###### Call Signature

```ts
insert(index, second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`insert`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#insert)

##### insertAt()

```ts
insertAt(index, items): void;
```

Inserts the specified item into the collection at the specified index.

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |
| `items` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) \| [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`insertAt`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#insertat)

##### intersect()

###### Call Signature

```ts
intersect(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`intersect`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#intersect)

###### Call Signature

```ts
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`intersect`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#intersect)

###### Call Signature

```ts
intersect(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`intersect`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#intersect)

###### Call Signature

```ts
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`intersect`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#intersect)

###### Call Signature

```ts
intersect(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`intersect`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#intersect)

###### Call Signature

```ts
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`intersect`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#intersect)

##### isEmpty()

```ts
isEmpty(): boolean;
```

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`isEmpty`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#isempty)

##### itemAdded()

```ts
itemAdded(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | (`data?`) => `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`itemAdded`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#itemadded)

##### itemAdded()

```ts
itemAdded(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`itemAdded`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#itemadded-1)

##### itemMoved()

```ts
itemMoved(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | (`data?`) => `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`itemMoved`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#itemmoved)

##### itemMoved()

```ts
itemMoved(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | (`data?`) => `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`itemMoved`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#itemmoved-1)

##### itemRemoved()

```ts
itemRemoved(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | (`data?`) => `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`itemRemoved`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#itemremoved)

##### itemRemoved()

```ts
itemRemoved(h): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `h` | `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`itemRemoved`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#itemremoved-1)

##### join()

###### Call Signature

```ts
join<TInner, TKey, TResult>(
   inner, 
   outerKeySelector, 
   innerKeySelector, 
   resultSelector, 
compareSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TInner` |
| `TKey` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `inner` | `IEnumerable`\<`TInner`\> |
| `outerKeySelector` | (`outer`) => `TKey` |
| `innerKeySelector` | (`inner`) => `TKey` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |
| `compareSelector?` | (`obj`) => `TKey` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`join`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#join)

###### Call Signature

```ts
join<TInner, TKey, TResult>(
   inner, 
   outerKeySelector, 
   innerKeySelector, 
   resultSelector, 
compareSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TInner` |
| `TKey` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `inner` | \{ \[`x`: `number`\]: `TInner`; `length`: `number`; \} |
| `inner.length` | `number` |
| `outerKeySelector` | (`outer`) => `TKey` |
| `innerKeySelector` | (`inner`) => `TKey` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |
| `compareSelector?` | (`obj`) => `TKey` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`join`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#join)

###### Call Signature

```ts
join<TInner, TKey, TResult>(
   inner, 
   outerKeySelector, 
   innerKeySelector, 
   resultSelector, 
compareSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TInner` |
| `TKey` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `inner` | `TInner`[] |
| `outerKeySelector` | (`outer`) => `TKey` |
| `innerKeySelector` | (`inner`) => `TKey` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |
| `compareSelector?` | (`obj`) => `TKey` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`join`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#join)

##### last()

```ts
last(predicate?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | (`element`, `index`) => `boolean` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`last`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#last)

##### lastIndexOf()

###### Call Signature

```ts
lastIndexOf(item): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `item` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`lastIndexOf`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#lastindexof)

###### Call Signature

```ts
lastIndexOf(predicate): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate` | (`element`, `index`) => `boolean` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`lastIndexOf`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#lastindexof)

##### lastOrDefault()

```ts
lastOrDefault(predicate?, defaultValue?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) \| ((`element`, `index`) => `boolean`) |
| `defaultValue?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`lastOrDefault`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#lastordefault)

##### letBind()

###### Call Signature

```ts
letBind<TResult>(func): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `func` | (`source`) => `object` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`letBind`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#letbind)

###### Call Signature

```ts
letBind<TResult>(func): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `func` | (`source`) => `TResult`[] |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`letBind`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#letbind)

###### Call Signature

```ts
letBind<TResult>(func): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `func` | (`source`) => `IEnumerable`\<`TResult`\> |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`letBind`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#letbind)

##### log()

###### Call Signature

```ts
log(): IEnumerable<T>;
```

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`log`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#log)

###### Call Signature

```ts
log<TValue>(selector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TValue` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector` | (`element`) => `TValue` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`log`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#log)

##### max()

```ts
max(selector?): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector?` | (`element`) => `number` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`max`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#max)

##### maxBy()

```ts
maxBy<TKey>(keySelector): Swatch;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`maxBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#maxby)

##### memoize()

```ts
memoize(): IDisposableEnumerable<T>;
```

###### Returns

`IDisposableEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`memoize`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#memoize)

##### merge()

###### Call Signature

```ts
merge<TResult>(...params): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`params` | `IEnumerable`\<`T`\>[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`merge`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#merge)

###### Call Signature

```ts
merge<TResult>(...params): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`params` | `object`[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`merge`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#merge)

###### Call Signature

```ts
merge<TResult>(...params): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`params` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[][] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`merge`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#merge)

##### min()

```ts
min(selector?): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector?` | (`element`) => `number` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`min`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#min)

##### minBy()

```ts
minBy<TKey>(keySelector): Swatch;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`minBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#minby)

##### move()

```ts
move(
   oldIndex, 
   newIndex, 
   supressEvent?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `oldIndex` | `any` |
| `newIndex` | `any` |
| `supressEvent?` | `boolean` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`move`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#move)

##### ofType()

```ts
ofType<TOf>(type): IEnumerable<TOf>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TOf` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `type` | [`Type`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/linq.md#type)\<`TOf`\> |

###### Returns

`IEnumerable`\<`TOf`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`ofType`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#oftype)

##### orderBy()

```ts
orderBy<TKey>(keySelector): IOrderedEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

`IOrderedEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`orderBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#orderby)

##### orderByDescending()

```ts
orderByDescending<TKey>(keySelector): IOrderedEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

`IOrderedEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`orderByDescending`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#orderbydescending)

##### pairwise()

```ts
pairwise<TResult>(selector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector` | (`prev`, `current`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`pairwise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#pairwise)

##### partitionBy()

###### Call Signature

```ts
partitionBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, any>>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

`IEnumerable`\<`IGrouping`\<`TKey`, `any`\>\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`partitionBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#partitionby)

###### Call Signature

```ts
partitionBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |

###### Returns

`IEnumerable`\<`IGrouping`\<`TKey`, `TElement`\>\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`partitionBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#partitionby)

###### Call Signature

```ts
partitionBy<TKey, TElement, TResult>(
   keySelector, 
   elementSelector, 
resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |
| `resultSelector` | (`key`, `element`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`partitionBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#partitionby)

###### Call Signature

```ts
partitionBy<TKey, TElement, TResult, TCompare>(
   keySelector, 
   elementSelector, 
   resultSelector, 
compareSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |
| `TResult` |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |
| `resultSelector` | (`key`, `element`) => `TResult` |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`partitionBy`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#partitionby)

##### push()

```ts
push(item): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `item` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`push`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#push)

##### remove()

```ts
remove(item): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `item` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`remove`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#remove)

##### removeAt()

```ts
removeAt(index): Swatch;
```

Removes the item at the specified index of the collection.

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`removeAt`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#removeat)

##### removeRange()

```ts
removeRange(from, to): Swatch[];
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `from` | `number` |
| `to` | `number` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[]

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`removeRange`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#removerange)

##### replaceAt()

```ts
replaceAt(item, index): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `item` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |
| `index` | `number` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`replaceAt`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#replaceat)

##### reverse()

```ts
reverse(): IEnumerable<T>;
```

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`reverse`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#reverse)

##### scan()

###### Call Signature

```ts
scan(func): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `func` | (`prev`, `current`) => [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`scan`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#scan)

###### Call Signature

```ts
scan<TAccumulate>(seed, func): IEnumerable<TAccumulate>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TAccumulate` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `seed` | `TAccumulate` |
| `func` | (`prev`, `current`) => `TAccumulate` |

###### Returns

`IEnumerable`\<`TAccumulate`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`scan`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#scan)

##### select()

```ts
select<TResult>(selector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector` | (`element`, `index`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`select`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#select)

##### selectMany()

###### Call Signature

```ts
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TOther` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `collectionSelector` | (`element`, `index`) => `IEnumerable`\<`TOther`\> |

###### Returns

`IEnumerable`\<`TOther`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`selectMany`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#selectmany)

###### Call Signature

```ts
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCollection` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `collectionSelector` | (`element`, `index`) => `IEnumerable`\<`TCollection`\> |
| `resultSelector` | (`outer`, `inner`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`selectMany`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#selectmany)

###### Call Signature

```ts
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TOther` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `collectionSelector` | (`element`, `index`) => `TOther`[] |

###### Returns

`IEnumerable`\<`TOther`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`selectMany`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#selectmany)

###### Call Signature

```ts
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCollection` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `collectionSelector` | (`element`, `index`) => `TCollection`[] |
| `resultSelector` | (`outer`, `inner`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`selectMany`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#selectmany)

###### Call Signature

```ts
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TOther` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `collectionSelector` | (`element`, `index`) => `object` |

###### Returns

`IEnumerable`\<`TOther`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`selectMany`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#selectmany)

###### Call Signature

```ts
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCollection` |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `collectionSelector` | (`element`, `index`) => `object` |
| `resultSelector` | (`outer`, `inner`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`selectMany`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#selectmany)

##### sequenceEqual()

###### Call Signature

```ts
sequenceEqual(second): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sequenceEqual`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sequenceequal)

###### Call Signature

```ts
sequenceEqual<TCompare>(second, compareSelector): boolean;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sequenceEqual`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sequenceequal)

###### Call Signature

```ts
sequenceEqual(second): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sequenceEqual`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sequenceequal)

###### Call Signature

```ts
sequenceEqual<TCompare>(second, compareSelector): boolean;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sequenceEqual`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sequenceequal)

###### Call Signature

```ts
sequenceEqual(second): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sequenceEqual`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sequenceequal)

###### Call Signature

```ts
sequenceEqual<TCompare>(second, compareSelector): boolean;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`boolean`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sequenceEqual`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sequenceequal)

##### set()

```ts
set(index, value): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `index` | `number` |
| `value` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`set`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#set)

##### setRange()

```ts
setRange(items): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `items` | `any` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`setRange`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#setrange)

##### share()

```ts
share(): IDisposableEnumerable<T>;
```

###### Returns

`IDisposableEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`share`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#share)

##### shuffle()

```ts
shuffle(): IEnumerable<T>;
```

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`shuffle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#shuffle)

##### single()

```ts
single(predicate?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | (`element`, `index`) => `boolean` |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`single`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#single)

##### singleOrDefault()

```ts
singleOrDefault(predicate?, defaultValue?): Swatch;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate?` | (`element`, `index`) => `boolean` |
| `defaultValue?` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch) |

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`singleOrDefault`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#singleordefault)

##### skip()

```ts
skip(count): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `count` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`skip`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#skip)

##### skipWhile()

```ts
skipWhile(predicate): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate` | (`element`, `index`) => `boolean` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`skipWhile`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#skipwhile)

##### sum()

```ts
sum(selector?): number;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector?` | (`element`) => `number` |

###### Returns

`number`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`sum`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#sum)

##### take()

```ts
take(count): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `count` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`take`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#take)

##### takeExceptLast()

```ts
takeExceptLast(count?): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `count?` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`takeExceptLast`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#takeexceptlast)

##### takeFromLast()

```ts
takeFromLast(count): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `count` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`takeFromLast`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#takefromlast)

##### takeWhile()

```ts
takeWhile(predicate): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate` | (`element`, `index`) => `boolean` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`takeWhile`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#takewhile)

##### toArray()

```ts
toArray(): Swatch[];
```

###### Returns

[`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[]

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toArray`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#toarray)

##### toDictionary()

###### Call Signature

```ts
toDictionary<TKey>(keySelector): IDictionary<TKey, any>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

`IDictionary`\<`TKey`, `any`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toDictionary`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#todictionary)

###### Call Signature

```ts
toDictionary<TKey, TValue>(keySelector, elementSelector): IDictionary<TKey, TValue>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TValue` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TValue` |

###### Returns

`IDictionary`\<`TKey`, `TValue`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toDictionary`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#todictionary)

###### Call Signature

```ts
toDictionary<TKey, TValue, TCompare>(
   keySelector, 
   elementSelector, 
compareSelector): IDictionary<TKey, TValue>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TValue` |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TValue` |
| `compareSelector` | (`key`) => `TCompare` |

###### Returns

`IDictionary`\<`TKey`, `TValue`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toDictionary`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#todictionary)

##### toJoinedString()

###### Call Signature

```ts
toJoinedString(separator?): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `separator?` | `string` |

###### Returns

`string`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toJoinedString`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tojoinedstring)

###### Call Signature

```ts
toJoinedString<TResult>(separator, selector): string;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `separator` | `string` |
| `selector` | (`element`, `index`) => `TResult` |

###### Returns

`string`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toJoinedString`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tojoinedstring)

##### toJSONString()

###### Call Signature

```ts
toJSONString(replacer): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `replacer` | (`key`, `value`) => `any` |

###### Returns

`string`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toJSONString`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tojsonstring)

###### Call Signature

```ts
toJSONString(replacer): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `replacer` | `any`[] |

###### Returns

`string`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toJSONString`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tojsonstring)

###### Call Signature

```ts
toJSONString(replacer, space): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `replacer` | (`key`, `value`) => `any` |
| `space` | `any` |

###### Returns

`string`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toJSONString`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tojsonstring)

###### Call Signature

```ts
toJSONString(replacer, space): string;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `replacer` | `any`[] |
| `space` | `any` |

###### Returns

`string`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toJSONString`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tojsonstring)

##### toLookup()

###### Call Signature

```ts
toLookup<TKey>(keySelector): ILookup<TKey, T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |

###### Returns

`ILookup`\<`TKey`, `T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toLookup`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tolookup)

###### Call Signature

```ts
toLookup<TKey, TElement>(keySelector, elementSelector): ILookup<TKey, TElement>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |

###### Returns

`ILookup`\<`TKey`, `TElement`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toLookup`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tolookup)

###### Call Signature

```ts
toLookup<TKey, TElement, TCompare>(
   keySelector, 
   elementSelector, 
compareSelector): ILookup<TKey, TElement>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TKey` |
| `TElement` |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `TKey` |
| `elementSelector` | (`element`) => `TElement` |
| `compareSelector` | (`key`) => `TCompare` |

###### Returns

`ILookup`\<`TKey`, `TElement`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toLookup`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#tolookup)

##### toObject()

```ts
toObject(keySelector, elementSelector?): Object;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `keySelector` | (`element`) => `any` |
| `elementSelector?` | (`element`) => `any` |

###### Returns

`Object`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`toObject`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#toobject)

##### trace()

###### Call Signature

```ts
trace(message?): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`trace`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#trace)

###### Call Signature

```ts
trace<TValue>(message, selector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TValue` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message` | `string` |
| `selector` | (`element`) => `TValue` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`trace`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#trace)

##### traverseBreadthFirst()

###### Call Signature

```ts
traverseBreadthFirst(childrenSelector): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `childrenSelector` | (`element`) => `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`traverseBreadthFirst`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#traversebreadthfirst)

###### Call Signature

```ts
traverseBreadthFirst<TResult>(childrenSelector, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `childrenSelector` | (`element`) => `IEnumerable`\<`T`\> |
| `resultSelector` | (`element`, `nestLevel`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`traverseBreadthFirst`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#traversebreadthfirst)

##### traverseDepthFirst()

###### Call Signature

```ts
traverseDepthFirst<TResult>(childrenSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `childrenSelector` | (`element`) => `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`traverseDepthFirst`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#traversedepthfirst)

###### Call Signature

```ts
traverseDepthFirst<TResult>(childrenSelector, resultSelector?): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `childrenSelector` | (`element`) => `IEnumerable`\<`T`\> |
| `resultSelector?` | (`element`, `nestLevel`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`traverseDepthFirst`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#traversedepthfirst)

##### union()

###### Call Signature

```ts
union(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`union`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#union)

###### Call Signature

```ts
union<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`union`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#union)

###### Call Signature

```ts
union(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`union`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#union)

###### Call Signature

```ts
union<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`union`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#union)

###### Call Signature

```ts
union(second): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`union`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#union)

###### Call Signature

```ts
union<TCompare>(second, compareSelector): IEnumerable<T>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TCompare` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |
| `compareSelector` | (`element`) => `TCompare` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`union`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#union)

##### weightedSample()

```ts
weightedSample(weightSelector): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `weightSelector` | (`element`) => `number` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`weightedSample`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#weightedsample)

##### where()

```ts
where(predicate): IEnumerable<T>;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `predicate` | (`element`, `index`) => `boolean` |

###### Returns

`IEnumerable`\<`T`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`where`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#where)

##### write()

###### Call Signature

```ts
write(separator?): void;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `separator?` | `string` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`write`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#write)

###### Call Signature

```ts
write<TResult>(separator, selector): void;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `separator` | `string` |
| `selector` | (`element`) => `TResult` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`write`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#write)

##### writeLine()

###### Call Signature

```ts
writeLine(): void;
```

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`writeLine`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#writeline)

###### Call Signature

```ts
writeLine<TResult>(selector): void;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `selector` | (`element`) => `TResult` |

###### Returns

`void`

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`writeLine`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#writeline)

##### zip()

###### Call Signature

```ts
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | `IEnumerable`\<`T`\> |
| `resultSelector` | (`first`, `second`, `index`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`zip`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#zip)

###### Call Signature

```ts
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | \{ \[`x`: `number`\]: [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch); `length`: `number`; \} |
| `second.length` | `number` |
| `resultSelector` | (`first`, `second`, `index`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`zip`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#zip)

###### Call Signature

```ts
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `second` | [`Swatch`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Swatch.md#swatch)[] |
| `resultSelector` | (`first`, `second`, `index`) => `TResult` |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`zip`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#zip)

###### Call Signature

```ts
zip<TResult>(...params): IEnumerable<TResult>;
```

###### Type Parameters

| Type Parameter |
| ------ |
| `TResult` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`params` | `any`[] |

###### Returns

`IEnumerable`\<`TResult`\>

###### Inherited from

[`Collection`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#collection).[`zip`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Collection.md#zip)
