exercises/216-number-arrays.js
// Hint: you may want to re-use your "isOdd" function from 01-predicate-functions.js
you may want to re-use your "isOdd" function from 01-predicate-functions.js
you may want to re - use your " isOdd " function from 01 - predicate - functions . js
function odds(array){
    var myArray = array.filter(function(element){
        return element % 2 !== 0;
    });
    return myArray;
}
function odds ( array ) { var myArray = array . filter ( function ( element ) { return element % 2 !== 0 ; } ) ; return myArray ; }
Hint: you may want to re-use your "isOdd" function from 01-predicate-functions.js
Hint : you may want to re - use your " isOdd " function from 01 - predicate - functions . js