Movk Core
仅将字符串的第一个字母转换为大写,其余部分保持不变。
import { upperFirst } from '@movk/core' upperFirst('foo bar') // => 'Foo bar' upperFirst('FOO BAR') // => 'FOO BAR'
upperFirst(str: string): string
b6146 — refactor: 统一源码文件命名为 camelCase
b6146
upperCase
将字符串转换为全大写,单词间用空格分隔 (HELLO WORLD)。
words
将字符串分解为单词数组。
页面导航
社区