Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. function LetterCapitalize(str) {
  2.  
  3. result=str.split(' ')
  4. .map(w => w[0].toUpperCase() + w.substring(1).toLowerCase())
  5. .join(' ');
  6. return result;
  7.  
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement