mytril
Version:
Mytril Svelte library component for rapidly building modern websites based on Svelte and Sveltekit
9 lines (8 loc) • 334 B
TypeScript
/**
* Capitalizes the first letter of each sentence in a given string.
* Sentences are determined by punctuation marks such as '.', '!', '?', and '…' followed by whitespace.
*
* @param sentence - The string to be capitalized.
* @returns The capitalized string.
*/
export declare function capitalize(sentence: string): string;