mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-26 21:58:56 +01:00
Update data_structures/arrays/remove_vowels.rb
Co-authored-by: vzvu3k6k <vzvu3k6k@gmail.com>
This commit is contained in:
parent
89a7af33e1
commit
5ed65199d7
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
def remove_vowels(s)
|
||||
result_array = []
|
||||
s.downcase
|
||||
s.downcase!
|
||||
start_array = s.split('')
|
||||
|
||||
start_array.each do |letter|
|
||||
|
@ -71,4 +71,4 @@ print(remove_vowels(s))
|
|||
# => "ltcdscmmntyfrcdrs"
|
||||
s = 'aeiou'
|
||||
print(remove_vowels(s))
|
||||
# => ""
|
||||
# => ""
|
||||
|
|
Loading…
Reference in a new issue