wcb/src/utils/get-camel-case.mjs
Ayo ec50f0f86e refactor(templating): attributes handling & JSX
- support unparented DOM nodes
- simpler attributes handling
- jsx-like syntax
- use .mjs for utils
2023-12-09 22:35:58 +01:00

3 lines
98 B
JavaScript

export function getCamelCase(kebab) {
return kebab.replace(/-./g, (x) => x[1].toUpperCase());
}