aboutsummaryrefslogtreecommitdiff
path: root/src/common/util/stringUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util/stringUtils.js')
-rw-r--r--src/common/util/stringUtils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util/stringUtils.js b/src/common/util/stringUtils.js
new file mode 100644
index 00000000..fc997fe0
--- /dev/null
+++ b/src/common/util/stringUtils.js
@@ -0,0 +1,3 @@
+export const prefixString = (prefix, value) => prefix + value.charAt(0).toUpperCase() + value.slice(1);
+
+export const unprefixString = (prefix, value) => value.charAt(prefix.length).toLowerCase() + value.slice(prefix.length + 1);