We have an array of numbers
and we want to remove all
the odd numbers from that array.
This code works, but Array
provides reject as a simpler way
to reject certain items.
reject will only reject items
for which the result of
condition is true.
Let's see it in action.