Upper cases the first letter in a string.
function stringUpperFirst(str: string): string
str:string The string to transform.
The string with the first character upper cased.
import { stringUpperFirst } from 'utils/strings';
console.log(stringUpperFirst('foo')); // Outputs: 'Foo'
console.log(stringUpperFirst('foo bar')); // Outputs: 'Foo bar'