服务器

Array

Collection

Date

Function

Lang

Math

Number

Object

Seq

String

Util

Properties

Methods

_.toUpper(string='')

string整体转换为大写字母,就像String#toUpperCase一样

版本

4.0.0

参数
  1. [string=''] (字符串):要转换的字符串。
返回

(字符串):返回上方的字符串。

_.toUpper('--foo-bar--');
// => '--FOO-BAR--'
 
_.toUpper('fooBar');
// => 'FOOBAR'
 
_.toUpper('__foo_bar__');
// => '__FOO_BAR__'