Skip to content

Latest commit

 

History

History

removing-elements

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Take an array and remove every second element from the array. Always keep the first element and start removing with the next element.

Example:

["Keep", "Remove", "Keep", "Remove", "Keep", ...] --> ["Keep", "Keep", "Keep", ...]

None of the arrays will be empty, so you don't have to worry about that!