Bump to v3.1.0.

This commit is contained in:
jdalton
2015-02-01 22:09:14 -08:00
parent 891d0482c6
commit d5f4043617
21 changed files with 74 additions and 37 deletions

View File

@@ -22,7 +22,7 @@ import createCompounder from '../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);
});
export default camelCase;