Last active
June 10, 2022 02:41
-
-
Save rimzzlabs/9e1d022e2ddaf75a3aae4a78544ea44a to your computer and use it in GitHub Desktop.
A JavaScript Function that will capitalize the first letter of each words
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
export const capsLetter = (str) => str.split(' ').map(l => l.slice(0, 1).toUpperCase() + l.slice(1)).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment