简体中文
主题
首字母大写。
import { upperFirst } from 'js-cool'
function upperFirst(string: string): string
string
string - 首字母大写的字符串。
upperFirst('hello') // 'Hello' upperFirst('hello world') // 'Hello world' upperFirst('h') // 'H'