Files
twenty/packages/twenty-front/src/utils/isUndefinedOrNull.ts
Lucas Bordeau 581dfafe11 Renamed nullable utils into isDefined and isUndefinedOrNull (#4402)
* Renamed nullable utils into isDefined and isUndefinedOrNull
2024-03-11 14:28:57 +01:00

5 lines
170 B
TypeScript

import { isNull, isUndefined } from '@sniptt/guards';
export const isUndefinedOrNull = (value: any): value is null | undefined =>
isUndefined(value) || isNull(value);