export const capitalize = (s: string) => { if (typeof s !== 'string') { return s; } return s.charAt(0).toUpperCase() + s.slice(1); };