continue-custom/core/util/text.ts
2025-03-06 11:59:46 -08:00

6 lines
150 B
TypeScript

export const capitalizeFirstLetter = (val: string) => {
if (val.length === 0) {
return "";
}
return val[0].toUpperCase() + val.slice(1);
};