export const capitalize = (value: any) => { const capitalizedValue = value.toString().charAt(0).toUpperCase() + value.toString().slice(1).toLowerCase(); return capitalizedValue; };