---
title: NumberSet
slug: data-platform/connect-platform/app-sdk-api-reference-classes-numberset
docTags: 
createdAt: 2026-08-05T20:06:34.006Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / NumberSet

# Class: NumberSet

Defined in: [src/store/NumberSet.ts:5](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/store/NumberSet.ts#L5)

A node Set of only numbers.
Used to differentiate between a string set or a number set as stored in the key-value storage.

## Extends

- `Set`\<`number`>

## Constructors

### Constructor

:::BlockQuote
**new NumberSet**(`values?`): `NumberSet`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:116

### Parameters

### values?

`null` | readonly `number`\[]

### Returns

`NumberSet`

### Inherited from

`Set<number>.constructor`

### Constructor

:::BlockQuote
**new NumberSet**(`iterable?`): `NumberSet`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:116

### Parameters

### iterable?

`null` | `Iterable`\<`number`, `any`, `any`>

### Returns

`NumberSet`

### Inherited from

`Set<number>.constructor`

## Properties

### \[toStringTag]

:::BlockQuote
`readonly` **\[toStringTag]**: `string`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:145

### Inherited from

`Set.[toStringTag]`

***

### size

:::BlockQuote
`readonly` **size**: `number`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:112

### Returns

the number of (unique) elements in Set.

### Inherited from

`Set.size`

***

### \[species]

:::BlockQuote
`readonly` `static` **\[species]**: `SetConstructor`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:322

### Inherited from

`Set.[species]`

## Methods

### \[iterator]\()

:::BlockQuote
**\[iterator]**(): `SetIterator`\<`number`>
:::

Defined in: node\_modules/typescript/lib/lib.es2015.iterable.d.ts:198

Iterates over values in the set.

### Returns

`SetIterator`\<`number`>

### Inherited from

`Set.[iterator]`

***

### add()

:::BlockQuote
**add**(`value`): `this`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:93

Appends a new element with a specified value to the end of the Set.

### Parameters

### value

`number`

### Returns

`this`

### Inherited from

`Set.add`

***

### clear()

:::BlockQuote
**clear**(): `void`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:95

### Returns

`void`

### Inherited from

`Set.clear`

***

### delete()

:::BlockQuote
**delete**(`value`): `boolean`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:100

Removes a specified value from the Set.

### Parameters

### value

`number`

### Returns

`boolean`

Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

### Inherited from

`Set.delete`

***

### entries()

:::BlockQuote
**entries**(): `SetIterator`\<\[`number`, `number`]>
:::

Defined in: node\_modules/typescript/lib/lib.es2015.iterable.d.ts:203

Returns an iterable of \[v,v] pairs for every value `v` in the set.

### Returns

`SetIterator`\<\[`number`, `number`]>

### Inherited from

`Set.entries`

***

### forEach()

:::BlockQuote
**forEach**(`callbackfn`, `thisArg?`): `void`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:104

Executes a provided function once per each value in the Set object, in insertion order.

### Parameters

### callbackfn

(`value`, `value2`, `set`) => `void`

### thisArg?

`any`

### Returns

`void`

### Inherited from

`Set.forEach`

***

### has()

:::BlockQuote
**has**(`value`): `boolean`
:::

Defined in: node\_modules/typescript/lib/lib.es2015.collection.d.ts:108

### Parameters

### value

`number`

### Returns

`boolean`

a boolean indicating whether an element with the specified value exists in the Set or not.

### Inherited from

`Set.has`

***

### keys()

:::BlockQuote
**keys**(): `SetIterator`\<`number`>
:::

Defined in: node\_modules/typescript/lib/lib.es2015.iterable.d.ts:208

Despite its name, returns an iterable of the values in the set.

### Returns

`SetIterator`\<`number`>

### Inherited from

`Set.keys`

***

### values()

:::BlockQuote
**values**(): `SetIterator`\<`number`>
:::

Defined in: node\_modules/typescript/lib/lib.es2015.iterable.d.ts:213

Returns an iterable of values in the set.

### Returns

`SetIterator`\<`number`>

### Inherited from

`Set.values`
