mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v3.1.0.
This commit is contained in:
@@ -22,7 +22,7 @@ var createCompounder = require('../internal/createCompounder');
|
||||
*/
|
||||
var camelCase = createCompounder(function(result, word, index) {
|
||||
word = word.toLowerCase();
|
||||
return index ? (result + word.charAt(0).toUpperCase() + word.slice(1)) : word;
|
||||
return result + (index ? (word.charAt(0).toUpperCase() + word.slice(1)) : word);
|
||||
});
|
||||
|
||||
module.exports = camelCase;
|
||||
|
||||
Reference in New Issue
Block a user