Skip to content

Commit

Permalink
Update 2023-1-13-retos-programacion.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
TripleYei authored Oct 11, 2023
1 parent b4c1961 commit 976f1f2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions _posts/2023-1-13-retos-programacion.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -678,3 +678,21 @@ function returnTwo(list) {
}
~~~~

Remove the Vowels

~~~~
function remove(str) {
return str.replace(/[aeiou]/ig, "")
}
~~~~

Remove the Dups

~~~~
function removeDups(list) {
for(let i=0;i<list.length;i++)
if(list[i] === list[i+1])
list.splice(i,1)
return list
}
~~~~

0 comments on commit 976f1f2

Please sign in to comment.