export default function capitalize(str: T): Capitalize { if (typeof str !== 'string') { return str; } const ret = str.charAt(0).toUpperCase() + str.slice(1); return ret as Capitalize; }