Everything Be True
2018-05-06 本文已影响0人
我想静静静静静
function every(collection, pre) {
// Is everyone being true?
return collection.every(function(item){
if(item[pre]){
return true;
}else{
return false;
}
});
}
function every(collection, pre) {
// Is everyone being true?
return collection.every(function(item){
if(item[pre]){
return true;
}else{
return false;
}
});
}