Capitalize (opens in a new tab) a string.
Syntax
import { capitalize } from '@opentf/std';
capitalize(str: string): string;
Examples
capitalize() // It throws an error;
capitalize('') // ''
capitalize('a') // 'A'
capitalize('ab') // 'Ab'
capitalize('FOO') // 'Foo'
capitalize('the quick brown fox') // 'The quick brown fox'
capitalize('the Quick Brown FOX') // 'The quick brown fox'
capitalize('1apple') // '1apple'