aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/stringUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/util/stringUtils.js')
-rw-r--r--modern/src/common/util/stringUtils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/util/stringUtils.js b/modern/src/common/util/stringUtils.js
new file mode 100644
index 00000000..fc997fe0
--- /dev/null
+++ b/modern/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);