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

API Reference@grafana/dataisBooleanUnit

isBooleanUnit() function

isBooleanUnit() function

Signature

export declare function isBooleanUnit(unit?: string): boolean | "" | undefined;

Import

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

Parameters

Parameter Type Description
unit string

Returns:

boolean | "" | undefined