+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toIntegerOrUndefined"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## toIntegerOrUndefined() function

### toIntegerOrUndefined() function

<b>Signature</b>

```typescript
export declare function toIntegerOrUndefined(value: string): number | undefined;
```
<b>Import</b>

```typescript
import { toIntegerOrUndefined } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | <code>string</code> |  |

<b>Returns:</b>

`number | undefined`

