1function cleanUpArray(arr) {
2 let intArray = arr.map(x => parseInt(x))
3 let evenArray = []
4 intArray.map(x => {
5 if(x % 2 === 0){
6 evenArray.push(x)
7 }
8 })
9 let oddArray = []
10 intArray.map(x => {
11 if(x % 2 !== 0){
12 oddArray.push(x)
13 }
14 })
15 return [evenArray, oddArray]
16}