Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
const toCamelCase = (value: string) => {
|
||||
return value
|
||||
.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
|
||||
return index === 0 ? word.toLowerCase() : word.toUpperCase();
|
||||
})
|
||||
.replace(/\s+/g, "")
|
||||
.replace(/[^a-z0-9]/gi, "");
|
||||
};
|
||||
const capitalize = (str: string) => {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
};
|
||||
|
||||
export default {
|
||||
toCamelCase,
|
||||
capitalize,
|
||||
};
|
||||
Reference in new issue
Block a user