Guest User

Untitled

a guest
Dec 11th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. var ls = ["this is fine" "+this is not"]
  2. var response = ls.map(s => s.toLowerCase().replace(/^(.)|[^w-'](w)/gi, match => match.toUpperCase()))
Add Comment
Please, Sign In to add comment