SHARE
TWEET

Untitled

a guest Jul 17th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const isVowel = (l) => (r = l == "A" || l == "E" || l == "I" || l == "O" || l == "U");
  2.  
  3. const vowelDoubler = (arr) => {
  4.   for(var i = 0; i < arr.length; i++) {
  5.     if (isVowel(arr[i].toUpperCase())){
  6.       arr.splice(i, 0, arr[i]);
  7.       i++
  8.     }
  9.   }
  10.   return arr
  11. }
RAW Paste Data
Top