Even Odd Partition problem that has an array that displays both an even array and odd array

I thought I wrote the correct function but I keep getting this result:

It keeps returning an empty array list when its supposed to have two arrays within one array. One array containing all even numbers and the second array containing all odd numbers. What am I doing wrong?

The link to my code:

You function doesn’t return anything as it is missing return statement. Other than that all seems good, it logs correct results