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;
}
});
}
本文标题:Everything Be True
本文链接:https://www.haomeiwen.com/subject/zxzyrftx.html
网友评论