We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0506739 + beaef3c commit 5c4902cCopy full SHA for 5c4902c
dist/lib/String.js
@@ -17,8 +17,8 @@
17
value: true
18
});
19
var camelize = exports.camelize = function camelize(str) {
20
- return str.split(' ').map(function (word) {
+ return str.split('_').map(function (word) {
21
return word.charAt(0).toUpperCase() + word.slice(1);
22
}).join('');
23
};
24
-});
+});
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
4
5
}
0 commit comments