Transforms underscores to spaces and converts the first character of a string to uppercase, while ensuring the rest of the string is lowercase.
The string to be converted to sentence case.
The sentence case string.
sentenceCase("hello_world"); // "Hello world"sentenceCase("Hello World"); // "Hello world" Copy
sentenceCase("hello_world"); // "Hello world"sentenceCase("Hello World"); // "Hello world"
Transforms underscores to spaces and converts the first character of a string to uppercase, while ensuring the rest of the string is lowercase.