return array ganjil atau bahkan outlier
function findOutlier(integers) {
var evens = integers.filter(number => number % 2 == 0);
var odds = integers.filter(number => number % 2 != 0);
if (evens.length === 1) {
return evens[0];
} else if (odds.length === 1) {
return odds[0];
}
}
Sparkling Serval