function toCamelCase(str){
let newArr;
str = str.split('-');
str = str.map((item, i) => {
(i == 0)? item : item[0].toUpperCase() + item.slice(1);
});
return str;
}
let camelCaseResult = toCamelCase('-web-maub-do');
console.log(camelCaseResult);