aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/stringUtils.js
blob: fc997fe0ec650ed21384f450f02ed6c3562e32cc (plain)
1
2
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);