mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Continue work on updating identifier
This commit is contained in:
parent
d2ec5283a0
commit
20f42e8a0d
12 changed files with 122 additions and 69 deletions
|
|
@ -841,3 +841,11 @@ export function createShallowProxy(obj) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function camelize(str) {
|
||||
return str
|
||||
.replace(/(?:^\w|[A-Z]|\b\w)/g, (part, index) => {
|
||||
return index === 0 ? part.toLowerCase() : part.toUpperCase();
|
||||
})
|
||||
.replace(/\s+/g, '');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue