1 2 3 4 5 6
var rHyphen = /-(.)/g; export default function camelize(string) { return string.replace(rHyphen, function (_, chr) { return chr.toUpperCase(); }); }