title: How to know if all javascript object values are true?
body: <p>In JavaScript, I need to know if all object items are set to true.</p>
  
  <p>If I have the following object:</p>
  
  <pre><code>var myObj = {title:true, name:true, email:false};
  </code></pre>
  
  <p>I could write something like this :   </p>
  
  <pre><code> if(myObj.title &amp;&amp; myObj.name &amp;&amp; myObj.email){
   /*Some code */
  };
  </code></pre>
  
  <p>But I am looking for the simplest way to write it. eg :</p>
  
  <pre><code>if(myObj all is true){
  /*Some code */
  };
  </code></pre>
  
  <p>I might have another object with 10-20 items inside it, and will need to know if all are true.</p>