function reject(array, test){
     return  filter(array, (element, index, array) => {
         //set up conditional statement to test if at each iteration, if the passed in param evaluates to false on the element, index, and array
        if(!test(element, index, array)){
            //if conditional evaluates to false, push the element into result array
           return element;
        }
     });
 }
/**
 * reject: Opposite of filter, reject is designed to iterate over a collection and
 * filter values in that collection based on a test. Takes a collection, Array or 
 * Object, and passes each element, index and collection in the collection through a test Function. The test
 * Function returns true if the value passes the test, false if otherwise. Values that
 * fail the test are pushed into a new array.
 * 
 * @param {Array} array: The collection to iterate over.
 * @param {Function} test: The function to be tested at each element, index, and collection at 
 * each iteration to determine if the value is truthy or falsy.
 * 
 * @return {Array}: An array containing only the values that failed the test function.
 */
Opposite of filter, reject is designed to iterate over a collection and
filter values in that collection based on a test. Takes a collection, Array or
Object, and passes each element, index and collection in the collection through a test Function. The test
Function returns true if the value passes the test, false if otherwise. Values that
fail the test are pushed into a new array.

@param {Array} array: The collection to iterate over.
@param {Function} test: The function to be tested at each element, index, and collection at
each iteration to determine if the value is truthy or falsy.

@return {Array}: An array containing only the values that failed the test function.
Opposite of filter reject is designed to iterate over a collection and filter values in that collection based on a test . Takes a collection Array or Object and passes each element index and collection in the collection through a test Function . The test Function returns true if the value passes the test false if otherwise . Values that fail the test are pushed into a new array . @param { Array } array : The collection to iterate over . @param { Function } test : The function to be tested at each element index and collection at each iteration to determine if the value is truthy or falsy . @return { Array } : An array containing only the values that failed the test function .
function reject(array, test){
     return  filter(array, (element, index, array) => {
        if(!test(element, index, array)){
           return element;
        }
     });
 }
function reject ( array , test ) { return filter ( array , ( element , index , array ) => { if ( ! test ( element , index , array ) ) { return element ; } } ) ; }
reject: Opposite of filter, reject is designed to iterate over a collection and
 filter values in that collection based on a test.
reject : Opposite of filter reject is designed to iterate over a collection and filter values in that collection based on a test .
//set up conditional statement to test if at each iteration, if the passed in param evaluates to false on the element, index, and array //if conditional evaluates to false, push the element into result array