From 54b774e481e1cae3674e891cfe2c19a4aa25a9f4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 8 Oct 2015 00:00:00 -0700 Subject: [PATCH] Update `_.lowerCase` and `_.upperCase` doc examples. [ci skip] --- lodash.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index 1a8fc94aa..20ade8aec 100644 --- a/lodash.js +++ b/lodash.js @@ -11129,8 +11129,14 @@ * @returns {string} Returns the lower cased string. * @example * - * _.lowerCase('FRED'); - * // => 'fred' + * _.lowerCase('Foo Bar'); + * // => 'foo bar' + * + * _.lowerCase('fooBar'); + * // => 'foo bar' + * + * _.lowerCase('__foo_bar__'); + * // => 'foo bar' */ var lowerCase = createCompounder(function(result, word, index) { return result + (index ? ' ' : '') + word.toLowerCase(); @@ -11812,8 +11818,14 @@ * @returns {string} Returns the upper cased string. * @example * - * _.upperCase('fred'); - * // => 'FRED' + * _.upperCase('Foo Bar'); + * // => 'FOO BAR' + * + * _.upperCase('fooBar'); + * // => 'FOO BAR' + * + * _.upperCase('__foo_bar__'); + * // => 'FOO BAR' */ var upperCase = createCompounder(function(result, word, index) { return result + (index ? ' ' : '') + word.toUpperCase();