javascript - Stuck rewriting _every -


so i'm trying rewrite underscore library class i'm taking. every part of test passes exception one. have no idea if function not given. ideas?

_.every = function(collection, test) {     test = false || _.identity;     return !!_.reduce(collection, function(test2, item) {       return test2 && test(item);     }, true);  };  


Comments