export const capitalize = (str: T) => { return (str.charAt(0).toUpperCase() + str.slice(1)) as Capitalize; }; export const isNullOrWhitespace = (value: string | null): value is null => { return value == null || value.trim() === ""; };