const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)
const toCapitalCase = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
};
const capitalizeText = (text) =>{
return text.toLowerCase().charAt(0).toUpperCase()+(text.slice(1).toLowerCase())
}
const capitalize = s => s && s[0].toUpperCase() + s.slice(1)
// to always return type string event when s may be falsy other than empty-string
const capitalize = s => (s && s[0].toUpperCase() + s.slice(1)) || ""