Search
The function splitByOddAndEven should separate a single array into sub-arrays: one containing odd numbers, the other containing even numbers.
splitByOddAndEven
For example: