Skip to content

lowerCase

js
_.lowerCase([string=''])

string(以空格分隔的单词)转换为小写。

¥Converts string, as space separated words, to lower case.

新增于

¥Since

4.0.0

参数

¥Arguments

  1. [string=''] (字符串):要去毛刺的字符串。

    ¥[string=''] (string): The string to convert.

返回

¥Returns

(字符串):返回小写字符串。

¥(string): Returns the lower cased string.

示例

¥Example

js
_.lowerCase('--Foo-Bar--');
// => 'foo bar'

_.lowerCase('fooBar');
// => 'foo bar'

_.lowerCase('__FOO_BAR__');
// => 'foo bar'

Lodash v4.17 中文网 - 粤ICP备13048890号