mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
13 lines
272 B
TypeScript
13 lines
272 B
TypeScript
import {defined} from 'sentry/utils';
|
|
|
|
/**
|
|
* A threshold has a value if it is not one of the following:
|
|
*
|
|
* '', null, undefined
|
|
*
|
|
*
|
|
*/
|
|
export default function hasThresholdValue(value: number | '' | null): value is number {
|
|
return defined(value) && value !== '';
|
|
}
|