UNPKG

369 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.camelize = void 0;
4function camelize(str) {
5 return str
6 .replace(/(-|_|\.|\s)+(.)?/g, (_match, _separator, chr) => (chr ? chr.toUpperCase() : ''))
7 .replace(/^([A-Z])/, match => match.toLowerCase());
8}
9exports.camelize = camelize;
10//# sourceMappingURL=strings.js.map
\No newline at end of file