mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 17:07:49 +08:00
4 lines
115 B
TypeScript
4 lines
115 B
TypeScript
export default function capitalize(value = ''): string {
|
|
return value.charAt(0).toUpperCase() + value.slice(1)
|
|
}
|