Renamed nullable utils into isDefined and isUndefinedOrNull (#4402)
* Renamed nullable utils into isDefined and isUndefinedOrNull
This commit is contained in:
4
packages/twenty-front/src/utils/isUndefinedOrNull.ts
Normal file
4
packages/twenty-front/src/utils/isUndefinedOrNull.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { isNull, isUndefined } from '@sniptt/guards';
|
||||
|
||||
export const isUndefinedOrNull = (value: any): value is null | undefined =>
|
||||
isUndefined(value) || isNull(value);
|
||||
Reference in New Issue
Block a user