Files
2024-02-15 17:01:50 +00:00

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 !== '';
}