mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Update _.lowerCase and _.upperCase doc examples. [ci skip]
This commit is contained in:
20
lodash.js
20
lodash.js
@@ -11129,8 +11129,14 @@
|
|||||||
* @returns {string} Returns the lower cased string.
|
* @returns {string} Returns the lower cased string.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.lowerCase('FRED');
|
* _.lowerCase('Foo Bar');
|
||||||
* // => 'fred'
|
* // => 'foo bar'
|
||||||
|
*
|
||||||
|
* _.lowerCase('fooBar');
|
||||||
|
* // => 'foo bar'
|
||||||
|
*
|
||||||
|
* _.lowerCase('__foo_bar__');
|
||||||
|
* // => 'foo bar'
|
||||||
*/
|
*/
|
||||||
var lowerCase = createCompounder(function(result, word, index) {
|
var lowerCase = createCompounder(function(result, word, index) {
|
||||||
return result + (index ? ' ' : '') + word.toLowerCase();
|
return result + (index ? ' ' : '') + word.toLowerCase();
|
||||||
@@ -11812,8 +11818,14 @@
|
|||||||
* @returns {string} Returns the upper cased string.
|
* @returns {string} Returns the upper cased string.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.upperCase('fred');
|
* _.upperCase('Foo Bar');
|
||||||
* // => 'FRED'
|
* // => 'FOO BAR'
|
||||||
|
*
|
||||||
|
* _.upperCase('fooBar');
|
||||||
|
* // => 'FOO BAR'
|
||||||
|
*
|
||||||
|
* _.upperCase('__foo_bar__');
|
||||||
|
* // => 'FOO BAR'
|
||||||
*/
|
*/
|
||||||
var upperCase = createCompounder(function(result, word, index) {
|
var upperCase = createCompounder(function(result, word, index) {
|
||||||
return result + (index ? ' ' : '') + word.toUpperCase();
|
return result + (index ? ' ' : '') + word.toUpperCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user