• + 0 comments
    function getCount(objects) {
        let counter = 0; 
    
        objects.forEach( ({x, y}) => {
            if (x === y) 
                counter++; 
        } ); 
        
        return counter; 
    }