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 e5ac224 commit d6dc666Copy full SHA for d6dc666
3-module/3-task/index.js
@@ -1,3 +1,8 @@
1
function camelize(str) {
2
- // ваш код...
3
-}
+ return str
+ .split('-')
4
+ .map((word, index) =>
5
+ index === 0 ? word : word[0].toUpperCase() + word.slice(1)
6
+ )
7
+ .join('');
8
+}
0 commit comments