diff --git a/src/utils/compact.ts b/src/utils/compact.ts index a6c4418..f76cfc7 100644 --- a/src/utils/compact.ts +++ b/src/utils/compact.ts @@ -1,15 +1,11 @@ type FalseyVals = '' | 0 | false | null | undefined; -const notFalsey = ( - value: T | FalseyVals -): value is T => { - return ( - value !== '' && - value !== 0 && - value !== false && - value !== null && - value !== undefined - ); +function notFalsy(value: T | FalsyVals): value is T { + return value !== '' + && value !== 0 + && value !== false + && value !== null + && value !== undefined; }; export function compact(arr: (T | FalseyVals)[]): T[] {