_.toLower(字符串转小写)
语法:
_.toLower([string=''])
源代码链接:source
npm包链接:npm package
描述:
转换整个string
字符串的字符为小写,类似String#toLowerCase。
开始版本:4.0.0
参数:
[string=''] (string)
: 要转换的字符串。
返回值:
(string)
: 返回小写的字符串。
例子:
_.toLower('--Foo-Bar--');
// => '--foo-bar--'
_.toLower('fooBar');
// => 'foobar'
_.toLower('__FOO_BAR__');
// => '__foo_bar__'
Last updated
Was this helpful?