How to shift vowels to the end of an array

constarr='visual'.split('');

constvowels='aeiou'.split('');

console.log(arr);

letj=0;

for(leti=0;i<arr.length;i++) {

if(!vowels.find((v)=>v===arr[i])) {

vow=arr[j];

arr[j]=arr[i];

arr[i]=vow;

j++

}

}

console.log(arr);

We stand with everyone working on the frontline.