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 c70a04f commit a1f146dCopy full SHA for a1f146d
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