1 line of code: How to camelCase a string
const toCamelCase = str =&gt; str.replace(/[\._-\s]+(.)?/g, (_, m) =&gt; (m ? m.toUpperCase() :...
Tags: javascript, webdev, productivity, codequality