merge
This commit is contained in:
parent
3f10b863c1
commit
fa34aed357
18 changed files with 165 additions and 171 deletions
9
src/helpers/index.js
Normal file
9
src/helpers/index.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function toPascalCase(string) {
|
||||
return string.replace(/\p{L}+/gu, function (w) {
|
||||
return (
|
||||
w[0].toLocaleUpperCase("fr-FR") + w.slice(1).toLocaleLowerCase("fr-FR")
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
export { toPascalCase };
|
||||
Loading…
Add table
Add a link
Reference in a new issue