JSFiddle - React, Tailwind, and code Playground
by hescano
JavaScript
function toCamelCase(str){
return str.replace(/_/g, '-').split('-').map((a, i, n) => i === 0 ? a : a[0].toUpperCase() + a.substr(1)).join('');
}
console.log(toCamelCase('the_stealth_warrior'));