diff options
Diffstat (limited to 'utils/stringUtils.js')
-rw-r--r-- | utils/stringUtils.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/stringUtils.js b/utils/stringUtils.js deleted file mode 100644 index f28841c..0000000 --- a/utils/stringUtils.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = { - - firstLetterCapital: firstLetterCapital, - - firstLetterWordCapital: firstLetterWordCapital - -} - -function firstLetterCapital(string) { - return string.substr(0, 1).toUpperCase() + string.substr(1) -} - -function firstLetterWordCapital(string) { - return string.split(" ").map(firstLetterCapital).join(" ") -}
\ No newline at end of file |