Added color picker

This commit is contained in:
Stefan Zermatten
2019-02-06 13:43:11 +02:00
parent 4917729f29
commit cf0440a8db
4 changed files with 224 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export function kebabToCamelCase(string){
return string.replace(/-([a-z0-9])/g, g => g[1].toUpperCase());
};
export function camelToKebabCase(string){
return string.replace(/([a-z][A-Z0-9])/g, g => g[0] + '-' + g[1].toLowerCase());
};