UNPKG

@ozen-ui/kit

Version:

React component library

10 lines (9 loc) 367 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toPascalCase = void 0; var toPascalCase = function (value) { return value .replace(/[-_]+(.)?/g, function (_, chr) { return (chr ? chr.toUpperCase() : ''); }) .replace(/^\w/, function (chr) { return chr.toUpperCase(); }); }; exports.toPascalCase = toPascalCase;