@ozen-ui/kit
Version:
React component library
10 lines (9 loc) • 363 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.toCamelCase = void 0;
var toCamelCase = function (value) {
return value
.replace(/[-_]+(.)?/g, function (_, chr) { return (chr ? chr.toUpperCase() : ''); })
.replace(/^\w/, function (chr) { return chr.toLowerCase(); });
};
exports.toCamelCase = toCamelCase;
;