UNPKG

@pactstech/react-components

Version:

pacts react components

7 lines 299 B
export const dashToPascalCase = (str) => str .toLowerCase() .split('-') .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)) .join(''); export const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`); //# sourceMappingURL=case.js.map