title: Log specific property value from object
body: <p>I have this object:</p>
  
  <p><code>choices: {'Frederico' : true, 'Roberto' : false, 'Carlos' : false}</code></p>
  
  <p>and I am trying to log only the property that has a true value</p>
  
  <pre><code>for(var keyProperty in choices) {
      if(choices.hasOwnProperty(keyProperty)) {
        console.log(choices[keyProperty]);
      }
  }
  </code></pre>
  
  <p>But I am getting all properly values logged. How I can log the property keys that has the <code>true</code> value?</p>