mirror of
https://github.com/zoriya/v10.git
synced 2026-08-11 00:19:28 +00:00
feat(icons): setup icons package (#536)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function pascalCase(str: string): string {
|
||||
return str.replace(/[-_](.)/g, (_, c) => c.toUpperCase()).replace(/^(.)/, (_, c) => c.toUpperCase());
|
||||
}
|
||||
|
||||
export function camelCase(str: string): string {
|
||||
return pascalCase(str).replace(/^(.)/, (_, c) => c.toLowerCase());
|
||||
}
|
||||
Reference in New Issue
Block a user