Everything Be True

function every(collection, pre) {

  // Is everyone being true?

  return collection.every(function(item){

    if(item[pre]){

    return true;

  }else{

    return false;

  }

  });


}

你可能感兴趣的:(Everything Be True)