This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datatoIntegerOrUndefined

toIntegerOrUndefined() function

toIntegerOrUndefined() function

Signature

export declare function toIntegerOrUndefined(value: string): number | undefined;

Import

import { toIntegerOrUndefined } from '@grafana/data';

Parameters

Parameter Type Description
value string

Returns:

number | undefined