0
0
Fork 0
salix-front-mindshore-fork2/src/composables/useCamelCase.js

4 lines
111 B
JavaScript

export function useCamelCase(value) {
return value.replace(/[-_](.)/g, (_, char) => char.toUpperCase());
}