aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/stringUtils.js
blob: 7bd68c8570c7f8fc41fae9b52e96ff41702d00d3 (plain)
1
2
3
4
5
6
7
export const prefixString = (prefix, value) => {
  return prefix + value.charAt(0).toUpperCase() + value.slice(1);
}

export const unprefixString = (prefix, value) => {
  return value.charAt(prefix.length).toLowerCase() + value.slice(prefix.length + 1);
}