File size: 194 Bytes
d9494a5
 
 
 
 
 
1
2
3
4
5
6
7
export const getHumanReadableNameFromCode = (code: string) => {
  return code
    .split('_')
    .map((word) => word.charAt(0)?.toUpperCase() + word.slice(1)?.toLowerCase())
    .join(' ');
};