---
title: CustomStateSet.size()
slug: Web/API/CustomStateSet/size
tags:
  - API
  - Property
  - Reference
  - size
  - CustomStateSet
browser-compat: api.CustomStateSet.size
---
{{DefaultAPISidebar("DOM")}}

The **`size`** property of the {{domxref("CustomStateSet")}} interface returns the number of values in the `CustomStateSet`.

## Syntax

```js
CustomStateSet.size()
```

### Return Value

An integer indicating how many properties the `CustomStateSet` has.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

