Continue work on updating identifier

This commit is contained in:
Carlos Fernandez 2026-05-01 22:09:21 -04:00
parent d2ec5283a0
commit 20f42e8a0d
12 changed files with 122 additions and 69 deletions

View file

@ -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, '');
}