function isOdd(number) {
return number % 2 != 0;
}
function isEven(number) {
return number % 2 == 0;
}
function filter(numbers, fn) {
// Complete code
}
const numbers = [1, 2, 4, 7, 3, 5, 6], odd = filter(numbers, isOdd),
even = filter(numbers, isEven);