Created
March 7, 2023 05:19
-
-
Save ms314006/6432aa2d96df8592ea27fa0c2624a35e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const toUpperCase = (str) => str.toUpperCase(); | |
const getFirstLetter = (str) => str[0] || ''; | |
const getCapitalFirstLetter = (str) => getFirstLetter(toUpperCase(str)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment