Answers for "select elements of an array starting by a vowel"

0

select elements of an array starting by a vowel

let array = ["ananas", "banana", "kiwi"];
array.filter(str => /^[aeiou]/i.test(str));
Posted by: Guest on October-15-2020

Code answers related to "select elements of an array starting by a vowel"

Code answers related to "Javascript"

Browse Popular Code Answers by Language