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

# Functions

> `void`

## Functions

### applyIfDefined()

```ts
function applyIfDefined<T>(value, setter): void;
```

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `T` |
| `setter` | `Action`\<`T`\> |

#### Returns
