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 7178812Copy full SHA for 7178812
src/lib/String.js
@@ -1,5 +1,5 @@
1
export const camelize = function(str) {
2
- return str.split(' ').map(function(word) {
+ return str.replace('_',' ').split(' ').map(function(word) {
3
return word.charAt(0).toUpperCase() + word.slice(1);
4
}).join('');
5
}
0 commit comments