JSFiddle - React, Tailwind, and code Playground

JavaScript

String.prototype.toCamel = function(){
    return this.replace(/(^[a-z]|\_[a-z])/g, function($1){return $1.toUpperCase().replace('_','');});
};

document.write("hello_world".toCamel());