const camelize = (str) => { return str.replace(/(?:^w|[A-Z]|w)/g, function(word, index) { return index === 0 ? word.toLowerCase() : word.toUpperCase(); }).replace(/s+/g, ''); }