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