We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8be7d commit f7910e0Copy full SHA for f7910e0
src/lib/String.js
@@ -1,5 +1,5 @@
1
export const camelize = function(str) {
2
- return str.split('_').map(function(word) {
+ return str.split(' ').map(function(word) {
3
return word.charAt(0).toUpperCase() + word.slice(1);
4
}).join('');
5
}
0 commit comments