• + 0 comments
    function getCount(objects) {
      let count = 0;
    
      for (let i = 0; i < objects.length; i++) {
        const arr = Object.values(objects[i]);
        if (arr[0] === arr[1]) {
          count++;
        }
      }
      console.log("total", count);
      return count;
    }