GoScrobble/web/node_modules/dom-helpers/esm/camelize.js

6 lines
156 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
var rHyphen = /-(.)/g;
export default function camelize(string) {
return string.replace(rHyphen, function (_, chr) {
return chr.toUpperCase();
});
}