* Change to using arrow functions Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> * Add lint rule --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
4 lines
130 B
TypeScript
4 lines
130 B
TypeScript
export const isDefined = <T>(
|
|
value: T | undefined | null,
|
|
): value is NonNullable<T> => value !== undefined && value !== null;
|