API Reference@grafana/datatoIntegerOrUndefined

toIntegerOrUndefined() function

toIntegerOrUndefined() function

Signature

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

Import

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

Parameters

ParameterTypeDescription
valuestring

Returns:

number | undefined