function camelize(str) {
let splited = str.split('-');
let cameled = splited[0];
for(let i = 1; i < splited.length; i++) {
cameled += splited[i][0].toUpperCase() + splited[i].slice(1);
}
return cameled;
}
function camelize(str) {
return str
.split('-')
.map(
(word, index) => index == 0 ? word : word[0].toUpperCase() + word.slice(1)
)
.join('')
}
자살마렵다
ㅈㄴ쉬운데?