JSFiddle - React, Tailwind, and code Playground
by igos
HTML
<div id="abc"><div>
JavaScript
function camelize(str) {
var res = str.split(" ");
var t = "";
res.forEach(function(element, index, array) {
t += element[0];
});
return t;
}
$("#abc").html(camelize("Converting any string into camel case"));