title: how to catch specific property value when i loop through objects in array
body: <p>I have an array of objects with some information and one of them contains a boolean value that I want to check if it's <code>false</code> or <code>true</code> to some logic beyond the result. The problem is how I catch this value while i'm looping through objects. I made some tries but I can't solve the issue with ES6.</p>
  
  <p>The objects:</p>
  
  <pre><code>todos:Array[4]
      0:Object
          completed:1
          id:1
          task:"go to home"
      1:Object
          completed:0
          id:2
          task:"go to work"
      2:Object
          completed:0
          id:3
          task:"study laravel"
      3:Object
          completed:0
          id:4
          task:"study Vuejs"
  </code></pre>
  
  <p>And this is my code: </p>
  
  <pre><code>this.todos.map((item) =&gt; {
      for (let key in item) {
          if (item.hasOwnProperty(key)) {
              if (key === 1) {
                  console.log('done');
              }
          }
      }
  });
  </code></pre>