SHARE
TWEET

Untitled

a guest Mar 21st, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function wave(people) {
  2.   return [...people].map((person, idx) =>
  3.     person.trim()
  4.       && people.slice(0, idx) + people[idx].toUpperCase() + people.slice(idx+1)
  5.   ).filter(Boolean)
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top