upperCase

最后更新于:2022-04-02 00:07:54

## upperCase + [link](./upperCase "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L13041 "View in source.") + [npm](https://www.npmjs.com/package/lodash.uppercase "See the npm package.") ``` _.upperCase([string='']) ``` 转换字符串为空格分割的大写单词 ### 参数 1. [string=''] (string) 要转换的字符串 ### 返回值 (string) 返回大写单词 ### 示例 ``` _.upperCase('--foo-bar'); // => 'FOO BAR' _.upperCase('fooBar'); // => 'FOO BAR' _.upperCase('__foo_bar__'); // => 'FOO BAR' ```
';