I have the following array:
nombres = ["Violeta", "Andino", "Clemente", "Javiera", "Paula", "Pia", "Ray"]
a = nombres.map
And I would like to create another one and store it in the variable removing all the vowels from the names.
using .map
and.gsub
You could just use something like this:
Or better:
And the best tool to remove characters in a string is...
As @Gerry suggests you can do it like this with
map
:Here is a Post that contains a fairly comprehensive solution with several examples: