handoff-app
Version:
Automated documentation toolchain for building client side documentation from figma
14 lines (11 loc) • 320 B
text/typescript
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
/**
* Filters out null values
* @param value
* @returns
*/
export const filterOutNull = <T>(value: T): value is NonNullable<T> => value !== null;