function some(collection, test){
         let answer = false;
    if(!test){
        each(collection, (e, i, a) =>{
            //at each iteration check if any elements are truthy values
        if(e === true){
            //if conditional passes re-assign answer to true
            answer = true;
     }
    });
    }
    

    if(test){
        each(collection, (e, i, a) =>{
        if(test(e, i, a)){
            answer = true;
        }
    });
    }
    return answer;
     }
/**
     * some: Designed to iterate over a collection and call a test function to every
     * element to check if the values are truthy or falsy. 
     * 
     * @param {Array or Object} collection: The collection to iterate over.
     * @param {Function} test: The function to be called at each iteration to check
     * if the value is truthy or fasly. If no test function is given, some will
     * still iterate over the array to check if at each iteration that element's
     * value is truthy or fasly. 
     * 
     * @return {Boolean}: If every element fails the test function at each iteration
     * a boolean value of false will be returned, if at least one element passes
     * a boolean value of true will be returned. 
     */
Designed to iterate over a collection and call a test function to every
element to check if the values are truthy or falsy.

@param {Array or Object} collection: The collection to iterate over.
@param {Function} test: The function to be called at each iteration to check
if the value is truthy or fasly. If no test function is given, some will
still iterate over the array to check if at each iteration that element's
value is truthy or fasly.

@return {Boolean}: If every element fails the test function at each iteration
a boolean value of false will be returned, if at least one element passes
a boolean value of true will be returned.
Designed to iterate over a collection and call a test function to every element to check if the values are truthy or falsy . @param { Array or Object } collection : The collection to iterate over . @param { Function } test : The function to be called at each iteration to check if the value is truthy or fasly . If no test function is given some will still iterate over the array to check if at each iteration that element ' s value is truthy or fasly . @return { Boolean } : If every element fails the test function at each iteration a boolean value of false will be returned if at least one element passes a boolean value of true will be returned .
function some(collection, test){
         let answer = false;
    if(!test){
        each(collection, (e, i, a) =>{
        if(e === true){
            answer = true;
     }
    });
    }
    if(test){
        each(collection, (e, i, a) =>{
        if(test(e, i, a)){
            answer = true;
        }
    });
    }
    return answer;
     }
function some ( collection , test ) { let answer = false ; if ( ! test ) { each ( collection , ( e , i , a ) => { if ( e === true ) { answer = true ; } } ) ; } if ( test ) { each ( collection , ( e , i , a ) => { if ( test ( e , i , a ) ) { answer = true ; } } ) ; } return answer ; }
some: Designed to iterate over a collection and call a test function to every
 element to check if the values are truthy or falsy.
some : Designed to iterate over a collection and call a test function to every element to check if the values are truthy or falsy .
//at each iteration check if any elements are truthy values //if conditional passes re-assign answer to true