Pig Latin with out vowels

Tell us what’s happening:

Your code so far


function translatePigLatin(str) {
  function checkv(char) {   
    return !/[aeiou]/.test(char);
  }
  let i =0; 
  while(checkv(str[0])){
      str = str.substr(1) + str.substr(0,1);       
      i++;  
  };
 
return i==0? str + "way" : str + "ay"; 
}

translatePigLatin("consonant");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

Link to the challenge:

There are a few edge case words that do not contain AEIOU that you may need to account for, for example the word “lynx”.

'one test case fails while solving it. How to fix it without using ‘aeiou’?